mirror of
https://github.com/langgenius/dify.git
synced 2026-04-24 21:05:48 +08:00
fix: Change 'commit' to 'flush' to prevent subsequent transaction failures.
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user