commit to test git hooks

This commit is contained in:
Gerard 2018-12-13 09:09:07 +01:00
parent aba1201366
commit 98229d9cd2
1 changed files with 2 additions and 1 deletions

View File

@ -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) {