Skip to content

Commit

Permalink
update(inbox): add createdAt field to integrations (#4842)
Browse files Browse the repository at this point in the history
  • Loading branch information
enkhtuvshinD committed Dec 13, 2023
1 parent 6b59cb3 commit 6160d43
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export const types = ({ products, tags, forms }) => `
code: String
formId: String
tagIds: [String]
createdAt: Date
${tags ? `tags: [Tag]` : ''}
Expand Down
3 changes: 2 additions & 1 deletion packages/plugin-inbox-api/src/models/Integrations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,8 @@ export const loadClass = (models: IModels, subdomain: string) => {
return models.Integrations.create({
...doc,
isActive: true,
createdUserId: userId
createdUserId: userId,
createdAt: new Date()
});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,7 @@ export const integrationSchema = schemaHooksWrapper(
type: String,
label: 'Kind'
}),
createdAt: field({ type: 'Date', label: 'Created at' }),

name: field({ type: String, label: 'Name' }),
brandId: field({ type: String, label: 'Brand' }),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ const integrations = `
name
code
}
createdAt
webhookData
leadData
formId
Expand Down

0 comments on commit 6160d43

Please sign in to comment.