Adds create order transactiom
This commit is contained in:
1 parent
b36e3e502d
commit
30c101a8be
4 files changed
+91
-22
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user