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));
|
promises.push(this.upsertWithWhere(update.where, update.data, options));
|
||||||
await Promise.all(promises);
|
await Promise.all(promises);
|
||||||
}
|
}
|
||||||
if (creates && creates.length)
|
if (creates && creates.length) {
|
||||||
try {
|
try {
|
||||||
await this.create(creates, options);
|
await this.create(creates, options);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
throw error[error.length - 1];
|
throw error[error.length - 1];
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
await transaction.commit();
|
await transaction.commit();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
Loading…
Reference in New Issue