mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Updated webhook default to v3 api
no-issue There are no members serializers on the v2 api
This commit is contained in:
parent
d680f33f10
commit
5fb05e970c
2 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ Webhook = ghostBookshelf.Model.extend({
|
|||
|
||||
defaults() {
|
||||
return {
|
||||
api_version: 'v2',
|
||||
api_version: 'v3',
|
||||
status: 'available'
|
||||
};
|
||||
},
|
||||
|
|
|
@ -3,7 +3,7 @@ module.exports = (event, model) => {
|
|||
const sequence = require('../../lib/promise/sequence');
|
||||
const api = require('../../api');
|
||||
|
||||
const apiVersion = model.get('api_version') || 'v2';
|
||||
const apiVersion = model.get('api_version') || 'v3';
|
||||
|
||||
const resourceName = event.match(/(\w+)\./)[1];
|
||||
const docName = `${resourceName}s`;
|
||||
|
|
Loading…
Add table
Reference in a new issue