add event set status to 1
This commit is contained in:
parent
a1e135a03e
commit
360ac8771a
@ -202,6 +202,7 @@ async def update_events(authorize: Annotated[bool, Depends(permissions_checker.P
|
|||||||
event.longitude = eventSingle.longitude
|
event.longitude = eventSingle.longitude
|
||||||
event.imgUrl = eventSingle.imgUrl
|
event.imgUrl = eventSingle.imgUrl
|
||||||
event.tags = eventSingle.tags
|
event.tags = eventSingle.tags
|
||||||
|
event.status = 1
|
||||||
event.created_at = datetime.today()
|
event.created_at = datetime.today()
|
||||||
event_repository.save(event)
|
event_repository.save(event)
|
||||||
content = {"message": "event is created"}
|
content = {"message": "event is created"}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user