fix commit in db

This commit is contained in:
Cayo Puigdefabregas 2022-06-17 11:24:52 +02:00
parent 5262d407b8
commit 559e926626
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@ class SnapshotView(SnapshotMixin):
raise err
db.session.add(snapshot)
self.errors(txt="Ok", severity=Severity.Info, snapshot=snapshot, commit=True)
self.errors(txt="Ok", severity=Severity.Info, snapshot=snapshot, commit=False)
db.session().final_flush()
self.response = self.schema.jsonify(snapshot) # transform it back