Skip to content

Commit

Permalink
update Webhook model
Browse files Browse the repository at this point in the history
  • Loading branch information
Alino committed Jul 30, 2018
1 parent d83f6e6 commit 59a26b7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions api/models/Webhook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ module.exports = {
type: 'integer',
autoIncrement: true,
unique: true,
primaryKey: true
primaryKey: true,
description: '(auto-generated)'
},

name: {
Expand All @@ -26,7 +27,8 @@ module.exports = {

url: {
type: 'string',
description: 'url which the server will make a request to when an event occurs'
description: 'url which the server will make a request to when an event occurs',
required: true
},

eventType: {
Expand All @@ -42,7 +44,8 @@ module.exports = {
'assetUpdated',
'assetDeleted'
],
description: 'type of event - if this event occurs, then the "url" will be requested by the TAPICC server'
description: 'type of event - if this event occurs, then the "url" will be requested by the TAPICC server',
required: true
}
},

Expand Down

0 comments on commit 59a26b7

Please sign in to comment.