#6776 makeMulti & itemShelvin_add refactor #1970
|
@ -1,5 +1,5 @@
|
||||||
module.exports = Self => {
|
module.exports = Self => {
|
||||||
Self.remoteMethod('makeMulti', {
|
Self.remoteMethodCtx('makeMulti', {
|
||||||
|
|||||||
description: 'Add a record or update it if it already exists.',
|
description: 'Add a record or update it if it already exists.',
|
||||||
accessType: 'WRITE',
|
accessType: 'WRITE',
|
||||||
accepts: [{
|
accepts: [{
|
||||||
|
@ -25,8 +25,8 @@ module.exports = Self => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
Self.makeMulti = async(shelvingFk, items, warehouseFk, options) => {
|
Self.makeMulti = async(ctx, shelvingFk, items, warehouseFk, options) => {
|
||||||
const myOptions = {};
|
const myOptions = {userId: ctx.req.accessToken.userId};
|
||||||
let tx;
|
let tx;
|
||||||
|
|
||||||
if (typeof options == 'object')
|
if (typeof options == 'object')
|
||||||
|
|
Loading…
Reference in New Issue
tanto el nombre como la descripcion no me dejan claro que hace
Proposta: itemShelvingAddList_byItem
addShelvingByItem este be?