Skip to content

Commit 1a4a7b8

Browse files
committed
feat: Add createdAt field to the outgoing-emails collection and update related types.
1 parent 1976316 commit 1a4a7b8

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

src/features/payload-cms/payload-cms/collections/outgoing-emails.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,5 +151,14 @@ export const OutgoingEmails: CollectionConfig = {
151151
},
152152
],
153153
},
154+
{
155+
name: 'createdAt',
156+
type: 'date',
157+
index: true,
158+
admin: {
159+
readOnly: true,
160+
position: 'sidebar',
161+
},
162+
},
154163
],
155164
};

src/features/payload-cms/payload-types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2572,8 +2572,8 @@ export interface OutgoingEmail {
25722572
| boolean
25732573
| null;
25742574
rawDsnEmail?: string | null;
2575-
updatedAt: string;
25762575
createdAt: string;
2576+
updatedAt: string;
25772577
}
25782578
/**
25792579
* This is a collection of automatically created search results. These results are used by the global site search and will be updated automatically as documents in the CMS are created or updated.
@@ -3961,8 +3961,8 @@ export interface OutgoingEmailsSelect<T extends boolean = true> {
39613961
smtpResults?: T;
39623962
rawSmtpResults?: T;
39633963
rawDsnEmail?: T;
3964-
updatedAt?: T;
39653964
createdAt?: T;
3965+
updatedAt?: T;
39663966
}
39673967
/**
39683968
* This interface was referenced by `Config`'s JSON-Schema

0 commit comments

Comments
 (0)