Merge pull request 'add event set status to 1' (#23) from feature/search into master

Reviewed-on: #23
This commit is contained in:
v4l3n71n 2024-10-23 23:37:50 +02:00
commit 4f0cda831f

View File

@ -202,6 +202,7 @@ async def update_events(authorize: Annotated[bool, Depends(permissions_checker.P
event.longitude = eventSingle.longitude
event.imgUrl = eventSingle.imgUrl
event.tags = eventSingle.tags
event.status = 1
event.created_at = datetime.today()
event_repository.save(event)
content = {"message": "event is created"}