refactor(transactions): added transaction to sendChechingPresence and corrected a typo
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
05df98939b
commit
270b2802c8
|
@ -77,8 +77,8 @@ module.exports = Self => {
|
||||||
.toString('base64');
|
.toString('base64');
|
||||||
|
|
||||||
let hash = crypto.createHash('sha1');
|
let hash = crypto.createHash('sha1');
|
||||||
hash.updateAll(password);
|
hash.update(password);
|
||||||
hash.updateAll(salt, 'binary');
|
hash.update(salt, 'binary');
|
||||||
let digest = hash.digest('binary');
|
let digest = hash.digest('binary');
|
||||||
|
|
||||||
let ssha = Buffer
|
let ssha = Buffer
|
||||||
|
|
|
@ -148,7 +148,7 @@ module.exports = Self => {
|
||||||
ticketUrl: `${origin}/#!/ticket/${id}/sale`,
|
ticketUrl: `${origin}/#!/ticket/${id}/sale`,
|
||||||
changes: changesMade
|
changes: changesMade
|
||||||
});
|
});
|
||||||
await models.Chat.sendCheckingPresence(ctx, salesPerson.id, message);
|
await models.Chat.sendCheckingPresence(ctx, salesPerson.id, message, myOptions);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tx) await tx.commit();
|
if (tx) await tx.commit();
|
||||||
|
|
Loading…
Reference in New Issue