commit to test git hooks
This commit is contained in:
parent
aba1201366
commit
98229d9cd2
|
@ -57,12 +57,13 @@ module.exports = function(Self) {
|
|||
promises.push(this.upsertWithWhere(update.where, update.data, options));
|
||||
await Promise.all(promises);
|
||||
}
|
||||
if (creates && creates.length)
|
||||
if (creates && creates.length) {
|
||||
try {
|
||||
await this.create(creates, options);
|
||||
} catch (error) {
|
||||
throw error[error.length - 1];
|
||||
}
|
||||
}
|
||||
|
||||
await transaction.commit();
|
||||
} catch (error) {
|
||||
|
|
Loading…
Reference in New Issue