mirror of
https://github.com/langgenius/dify.git
synced 2026-04-16 02:16:57 +08:00
fix: Change 'commit' to 'flush' to prevent subsequent transaction fai… (#35243)
This commit is contained in:
parent
50a55513d4
commit
79332c0e5e
@ -455,7 +455,7 @@ class AppDslService:
|
||||
app.updated_by = account.id
|
||||
|
||||
self._session.add(app)
|
||||
self._session.commit()
|
||||
self._session.flush()
|
||||
app_was_created.send(app, account=account)
|
||||
|
||||
# save dependencies
|
||||
|
||||
Loading…
Reference in New Issue
Block a user