fix: refs #6850 remove notifyPickUp #3132
|
@ -119,18 +119,4 @@ module.exports = Self => {
|
||||||
});
|
});
|
||||||
await models.Chat.sendCheckingPresence(ctx, workerId, message);
|
await models.Chat.sendCheckingPresence(ctx, workerId, message);
|
||||||
}
|
}
|
||||||
|
|
||||||
async function notifyPickUp(ctx, workerId, claim) {
|
|
||||||
const models = Self.app.models;
|
|
||||||
const url = await models.Url.getUrl();
|
|
||||||
const $t = ctx.req.__; // $translate
|
|
||||||
|
|
||||||
const message = $t('Claim will be picked', {
|
|
||||||
claimId: claim.id,
|
|
||||||
clientName: claim.client().name,
|
|
||||||
claimUrl: `${url}claim/${claim.id}/summary`,
|
|
||||||
claimPickup: $t(claim.pickup)
|
|
||||||
});
|
|
||||||
await models.Chat.sendCheckingPresence(ctx, workerId, message);
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue