8355-testToMaster #3336
|
@ -392,6 +392,7 @@
|
|||
"The raid information is not correct": "La información de la redada no es correcta",
|
||||
"There are tickets to be invoiced": "Hay tickets para esta zona, borralos primero",
|
||||
"An item type with the same code already exists": "Un tipo con el mismo código ya existe",
|
||||
"Holidays to past days not available": "Las vacaciones a días pasados no están disponibles"
|
||||
"Holidays to past days not available": "Las vacaciones a días pasados no están disponibles",
|
||||
"Worker not found": "Trabajador no encontrado"
|
||||
}
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ module.exports = Self => {
|
|||
|
||||
try {
|
||||
const userId = ctx.req.accessToken.userId;
|
||||
const worker = await models.Worker.findOne({where: {id: userId}}, myOptions);
|
||||
const worker = await models.Worker.findById({where: {id: userId}}, myOptions);
|
||||
if (!worker) throw new Error('Worker not found');
|
||||
|
||||
const params = {
|
||||
|
@ -76,7 +76,7 @@ module.exports = Self => {
|
|||
observation: params.response
|
||||
});
|
||||
|
||||
await models.Chat.sendCheckingPresence(ctx, requesterId, message);
|
||||
await models.Chat.sendCheckingPresence(ctx, requesterId, message, myOptions);
|
||||
await request.updateAttributes(params, myOptions);
|
||||
|
||||
if (tx) await tx.commit();
|
||||
|
|
Loading…
Reference in New Issue