You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sequelize with version: true option for models does internal optimistic locking. But if you want to provide your own version, to do "manual" optimistic locking from an api level you have to call instance.setDataValue('version', versionFromInput) before saving.
Would it be ok to add a optimisticLocking option to the service which does that?
I am willing to provide a pull request if it will be merged.
The text was updated successfully, but these errors were encountered:
Sequelize with
version: true
option for models does internal optimistic locking. But if you want to provide your own version, to do "manual" optimistic locking from an api level you have to callinstance.setDataValue('version', versionFromInput)
before saving.Would it be ok to add a optimisticLocking option to the service which does that?
I am willing to provide a pull request if it will be merged.
The text was updated successfully, but these errors were encountered: