diff --git a/server/models/Integration.ts b/server/models/Integration.ts index 1d15f9626..7ea0b1551 100644 --- a/server/models/Integration.ts +++ b/server/models/Integration.ts @@ -50,7 +50,6 @@ class Integration extends IdModel { @Column(DataType.JSONB) settings: IntegrationSettings; - @IsIn([["documents.update", "documents.publish"]]) @Column(DataType.ARRAY(DataType.STRING)) events: string[]; diff --git a/server/test/factories.ts b/server/test/factories.ts index a38c7af59..28ea63fee 100644 --- a/server/test/factories.ts +++ b/server/test/factories.ts @@ -244,6 +244,7 @@ export async function buildIntegration(overrides: Partial = {}) { return Integration.create({ type: "post", service: "slack", + events: ["documents.update", "documents.publish"], settings: { serviceTeamId: "slack_team_id", },