Add publishing date (#107)

This commit is contained in:
Niklas Fondberg
2022-03-10 16:22:03 +01:00
committed by GitHub
parent c4e04dc616
commit cf6b1fd56e
8 changed files with 4166 additions and 4051 deletions
+18
View File
@@ -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',
};
},
};