refactor(transactions): added transaction to sendChechingPresence and corrected a typo
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Carlos Jimenez Ruiz 2021-10-15 15:31:13 +02:00
parent 05df98939b
commit 270b2802c8
2 changed files with 3 additions and 3 deletions

View File

@ -77,8 +77,8 @@ module.exports = Self => {
.toString('base64');
let hash = crypto.createHash('sha1');
hash.updateAll(password);
hash.updateAll(salt, 'binary');
hash.update(password);
hash.update(salt, 'binary');
let digest = hash.digest('binary');
let ssha = Buffer

View File

@ -148,7 +148,7 @@ module.exports = Self => {
ticketUrl: `${origin}/#!/ticket/${id}/sale`,
changes: changesMade
});
await models.Chat.sendCheckingPresence(ctx, salesPerson.id, message);
await models.Chat.sendCheckingPresence(ctx, salesPerson.id, message, myOptions);
}
if (tx) await tx.commit();