0
Fork 0
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:
Fabien O'Carroll 2019-10-11 17:18:04 +07:00
parent d680f33f10
commit 5fb05e970c
2 changed files with 2 additions and 2 deletions

View file

@ -9,7 +9,7 @@ Webhook = ghostBookshelf.Model.extend({
defaults() {
return {
api_version: 'v2',
api_version: 'v3',
status: 'available'
};
},

View file

@ -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`;