0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Cleaned up Products API add & edit

refs https://github.com/TryGhost/Team/issues/1291

This is cleanup from the initial implementation.
This commit is contained in:
Fabien "egg" O'Carroll 2022-01-25 15:44:07 +02:00
parent 2122a47ce0
commit 60777ac7fb

View file

@ -78,7 +78,7 @@ module.exports = {
name: {required: true}
}
},
permissions: false,
permissions: true,
async query(frame) {
const model = await membersService.api.productRepository.create(
frame.data,
@ -101,7 +101,7 @@ module.exports = {
}
}
},
permissions: false,
permissions: true,
async query(frame) {
const model = await membersService.api.productRepository.update(
frame.data,