This reverts commit b1da0b547e.
This commit is contained in:
@@ -476,4 +476,22 @@ export const productMutationTypeDefs = {
|
||||
value: 'OK',
|
||||
};
|
||||
},
|
||||
/**
|
||||
* @function massUpdatePublishing
|
||||
* @description Mutate the Publishing for products
|
||||
*/
|
||||
async massUpdatePublishingDate(
|
||||
_,
|
||||
{ productIds, date },
|
||||
{ dataSources, auth },
|
||||
) {
|
||||
checkAccess(['products.write'], auth);
|
||||
await (<ProductAPI>dataSources.productApi).massUpdatePublishingDate(
|
||||
productIds,
|
||||
date,
|
||||
);
|
||||
return {
|
||||
value: 'OK',
|
||||
};
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user