mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -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}
|
name: {required: true}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
permissions: false,
|
permissions: true,
|
||||||
async query(frame) {
|
async query(frame) {
|
||||||
const model = await membersService.api.productRepository.create(
|
const model = await membersService.api.productRepository.create(
|
||||||
frame.data,
|
frame.data,
|
||||||
|
@ -101,7 +101,7 @@ module.exports = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
permissions: false,
|
permissions: true,
|
||||||
async query(frame) {
|
async query(frame) {
|
||||||
const model = await membersService.api.productRepository.update(
|
const model = await membersService.api.productRepository.update(
|
||||||
frame.data,
|
frame.data,
|
||||||
|
|
Loading…
Add table
Reference in a new issue