refs #5499 perf: rename variable
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Javier Segarra 2024-01-11 06:18:02 +00:00
parent de4ddf9392
commit b76e269e73
1 changed files with 3 additions and 3 deletions

View File

@ -110,7 +110,7 @@ module.exports = Self => {
}
};
async function notifyStateChange(ctx, id, claim, state) {
async function notifyStateChange(ctx, workerId, claim, newState) {
const models = Self.app.models;
const url = await models.Url.getUrl();
const $t = ctx.req.__; // $translate
@ -119,9 +119,9 @@ module.exports = Self => {
claimId: claim.id,
clientName: claim.client().name,
claimUrl: `${url}claim/${claim.id}/summary`,
newState: state
newState
});
await models.Chat.sendCheckingPresence(ctx, id, message);
await models.Chat.sendCheckingPresence(ctx, workerId, message);
}
async function notifyPickUp(ctx, workerId, claim) {