Skip to content

Commit

Permalink
fix(.join): deprecation
Browse files Browse the repository at this point in the history
deprecation
  • Loading branch information
snomiao committed Jan 20, 2025
1 parent 6506807 commit 3cced0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EmailTasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export async function enqueueEmailTask(task: z.infer<typeof zSendEmailAction>) {
}
export async function updateEmailTasks() {
const count = await sf(EmailTasks.find({ state: "waiting" }))
.join(sf(EmailTasks.find({ state: "sending", mtime: $stale("1m") })))
.merge(sf(EmailTasks.find({ state: "sending", mtime: $stale("1m") })))
.map(async (e) => {
const { _id, state } = e;
if (state === "waiting") {
Expand Down

0 comments on commit 3cced0c

Please sign in to comment.