fix: post service extra db commit
This commit is contained in:
parent
79f8104f2f
commit
a2e18300b9
1 changed files with 0 additions and 1 deletions
|
|
@ -66,7 +66,6 @@ async def register_service(db: db_dependency, su: super_admin_dependency, reques
|
||||||
except IntegrityError as e:
|
except IntegrityError as e:
|
||||||
if isinstance(e.orig, UniqueViolation):
|
if isinstance(e.orig, UniqueViolation):
|
||||||
raise ConflictException(message="Service with this name already exists")
|
raise ConflictException(message="Service with this name already exists")
|
||||||
db.commit()
|
|
||||||
response = ServiceWithKeySchema(**service_model.__dict__)
|
response = ServiceWithKeySchema(**service_model.__dict__)
|
||||||
db.commit()
|
db.commit()
|
||||||
return {"service": response}
|
return {"service": response}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue