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:
parent
2122a47ce0
commit
60777ac7fb
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue