Adds create order transactiom

This commit is contained in:
olivermrbl
2020-07-10 10:23:31 +02:00
parent b36e3e502d
commit 30c101a8be
4 changed files with 91 additions and 22 deletions
@@ -44,6 +44,13 @@ class BaseModel {
return mongoose.model(this.getModelName(), this.getSchema())
}
/**
* @private
*/
startSession() {
return this.mongooseModel_.startSession()
}
/**
* Queries the mongoose model via the mongoose's findOne.
* @param query {object} a mongoose selector query