fix: refs #7028 fix confirm deny #3290
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix#3290
Loading…
Reference in New Issue
No description provided.
Delete Branch "7028-itemRequestConfDeny"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -40,3 +43,3 @@
try {
const userId = ctx.req.accessToken.userId;
const worker = await Self.app.models.Worker.findOne({where: {id: userId}}, myOptions);
const worker = await models.Worker.findOne({where: {id: userId}}, myOptions);
findById
@ -41,2 +44,3 @@
const userId = ctx.req.accessToken.userId;
const worker = await Self.app.models.Worker.findOne({where: {id: userId}}, myOptions);
const worker = await models.Worker.findOne({where: {id: userId}}, myOptions);
if (!worker) throw new Error('Worker not found');
Traducir
@ -60,3 +77,3 @@
});
await models.Chat.sendCheckingPresence(ctx, requesterId, message, myOptions);
await models.Chat.sendCheckingPresence(ctx, requesterId, message);
, myOptions);
@ -102,3 +100,1 @@
});
await models.Chat.sendCheckingPresence(ctx, requesterId, message, myOptions);
const requesterId = request.ticket().client().salesPersonFk;
const salesPerson
@ -40,3 +44,3 @@
try {
const userId = ctx.req.accessToken.userId;
const worker = await Self.app.models.Worker.findOne({where: {id: userId}}, myOptions);
const worker = await models.Worker.findById(userId, myOptions);
(userId, {fields: ...}, myOptions);
@ -52,3 +67,2 @@
const url = await Self.app.models.Url.getUrl();
const requesterId = request.requesterFk;
const requesterId = request.ticket().client().salesPersonFk;
const salesPerson