mirror of
https://github.com/stack-auth/stack.git
synced 2026-07-20 21:29:36 +08:00
scheduledAt date moved to future date rather than past
This commit is contained in:
parent
3914553a51
commit
6f1e796452
@ -75,7 +75,7 @@ await hexclaveServerApp.sendEmail({
|
||||
// themeId: null, // use the default theme
|
||||
// themeId: false, // send with no theme at all
|
||||
notificationCategoryName: 'Marketing',
|
||||
scheduledAt: new Date('2025-12-25T00:00:00Z'),
|
||||
scheduledAt: new Date('2027-12-25T00:00:00Z'),
|
||||
});
|
||||
```
|
||||
|
||||
@ -139,7 +139,7 @@ await hexclaveServerApp.sendEmail({
|
||||
userIds: ['user-id'],
|
||||
html: '<p>Happy New Year!</p>',
|
||||
subject: 'Happy New Year!',
|
||||
scheduledAt: new Date('2026-01-01T00:00:00Z'),
|
||||
scheduledAt: new Date('2027-01-01T00:00:00Z'),
|
||||
});
|
||||
```
|
||||
|
||||
|
||||
@ -96,7 +96,7 @@ await hexclaveServerApp.sendEmail({
|
||||
allUsers: true,
|
||||
templateId: "product-update",
|
||||
subject: "We just shipped a big update",
|
||||
scheduledAt: new Date("2026-01-01T00:00:00Z"),
|
||||
scheduledAt: new Date("2027-01-01T00:00:00Z"),
|
||||
});
|
||||
```
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user