payload
Version:
Node, React, Headless CMS and Application Framework built on Next.js
20 lines (19 loc) • 590 B
JavaScript
export const dissasociateAfterDelete = ({ collectionSlugs, folderFieldName })=>{
return async ({ id, req })=>{
for (const collectionSlug of collectionSlugs){
await req.payload.update({
collection: collectionSlug,
data: {
[ ]: null
},
req,
where: {
[ ]: {
equals: id
}
}
});
}
};
};
//# sourceMappingURL=dissasociateAfterDelete.js.map