7167-testToMaster_2414 #2244

Merged
alexm merged 643 commits from 7167-testToMaster_2414 into master 2024-04-04 05:32:41 +00:00
1 changed files with 0 additions and 31 deletions
Showing only changes of commit 3ebf0a30a9 - Show all commits

View File

@ -1,31 +0,0 @@
module.exports = Self => {
Self.remoteMethodCtx('getItemPackingType', {
description: 'Retrieve the operator items',
accessType: 'READ',
returns: {
type: 'object',
},
http: {
path: `/getItemPackingType`,
verb: 'GET'
},
});
Self.getItemPackingType = async ctx => {
const userId = 9 ?? ctx.req.accessToken.userId;
const result = await Self.findOne({
where: {
workerFk: userId
},
include: {
relation: 'itemPackingType',
}
});
const itemPackingType = result.itemPackingType();
return {
description: itemPackingType?.description
};
};
};