bug: repository edits
This commit is contained in:
parent
1f94bfab8d
commit
3fb0216d9b
|
|
@ -155,8 +155,6 @@ async def update_repository(
|
||||||
conn = await crud.get_by_id(session, ForgejoConnection, repository.connection_id)
|
conn = await crud.get_by_id(session, ForgejoConnection, repository.connection_id)
|
||||||
if conn is None:
|
if conn is None:
|
||||||
raise HTTPException(status_code=status.HTTP_500_INTERNAL_SERVER_ERROR, detail="Referenced connection not found")
|
raise HTTPException(status_code=status.HTTP_500_INTERNAL_SERVER_ERROR, detail="Referenced connection not found")
|
||||||
# Attach connection for updates validation
|
|
||||||
repository.connection = conn
|
|
||||||
|
|
||||||
updates = payload.model_dump(exclude_unset=True)
|
updates = payload.model_dump(exclude_unset=True)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue