fix achiv
This commit is contained in:
parent
4cd3ea236d
commit
55a40de83a
@ -1,5 +1,6 @@
|
|||||||
import asyncio
|
import asyncio
|
||||||
import httpx
|
import httpx
|
||||||
|
from uuid import UUID
|
||||||
from fastapi import HTTPException, status
|
from fastapi import HTTPException, status
|
||||||
from config import settings
|
from config import settings
|
||||||
from common_lib.utils.http_client import client
|
from common_lib.utils.http_client import client
|
||||||
@ -19,7 +20,7 @@ async def send_update_increment_to_achievement_service(
|
|||||||
response = await client.post(
|
response = await client.post(
|
||||||
f"{settings.ACHIEVEMENT_SERVICE}/internal/progress-update",
|
f"{settings.ACHIEVEMENT_SERVICE}/internal/progress-update",
|
||||||
json={
|
json={
|
||||||
"user_id": str(user_id),
|
"user_id": UUID(user_id),
|
||||||
"achievement_code": str(achievement_code),
|
"achievement_code": str(achievement_code),
|
||||||
"increment": int(increment)
|
"increment": int(increment)
|
||||||
})
|
})
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "common-lib"
|
name = "common-lib"
|
||||||
version = "0.0.49"
|
version = "0.0.50"
|
||||||
description = "Библиотека общих компонентов для микросервисов yobble"
|
description = "Библиотека общих компонентов для микросервисов yobble"
|
||||||
authors = [{ name = "cheykrym", email = "you@example.com" }]
|
authors = [{ name = "cheykrym", email = "you@example.com" }]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user