-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(BSR)[API] fix: flush the deposit manually after object creation
A database object should be manually flushed if the business logic depends on a field that is populated by the server, like the creation date. Furthermore, relying on autoflush is a bad practice because some routes disable it in order to have more control on the SQLAlchemy session.
- Loading branch information
1 parent
05cbc24
commit b281ddc
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters