Skip to content

Commit

Permalink
feat(condo): DOMA-4355 Added webhooks for B2BAppContext
Browse files Browse the repository at this point in the history
  • Loading branch information
SavelevMatthew authored and VKislov committed Nov 10, 2022
1 parent faf9d35 commit 3606554
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion apps/condo/domains/miniapp/schema/B2BAppContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const { Relationship } = require('@keystonejs/fields')
const { Json } = require('@condo/keystone/fields')
const { GQLListSchema } = require('@condo/keystone/schema')
const { historical, versioned, uuided, tracked, softDeleted, dvAndSender } = require('@condo/keystone/plugins')
const { webHooked } = require('@condo/webhooks/plugins')
const access = require('@condo/domains/miniapp/access/B2BAppContext')
const { NO_CONTEXT_STATUS_ERROR } = require('@condo/domains/miniapp/constants')
const { STATUS_FIELD, getStatusResolver, getStatusDescription } = require('@condo/domains/miniapp/schema/fields/context')
Expand Down Expand Up @@ -84,7 +85,15 @@ const B2BAppContext = new GQLListSchema('B2BAppContext', {
}
},
},
plugins: [uuided(), versioned(), tracked(), softDeleted(), dvAndSender(), historical()],
plugins: [
uuided(),
versioned(),
tracked(),
softDeleted(),
dvAndSender(),
historical(),
webHooked(),
],
access: {
read: access.canReadB2BAppContexts,
create: access.canManageB2BAppContexts,
Expand Down

0 comments on commit 3606554

Please sign in to comment.