status
This commit is contained in:
parent
b16209f23e
commit
4e33cc471f
6 changed files with 35 additions and 23 deletions
|
@ -68,12 +68,14 @@ function fireTrigger(trigger, callback) {
|
|||
}
|
||||
|
||||
if (!rows || !rows.length) {
|
||||
connection.release();
|
||||
return callback(null, trigger.id);
|
||||
}
|
||||
|
||||
let pos = 0;
|
||||
let insertNext = () => {
|
||||
if (pos >= rows.length) {
|
||||
connection.release();
|
||||
return callback(null, trigger.id);
|
||||
}
|
||||
let subscriber = rows[pos++].id;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue