release: WRNexusJS 0.8.0
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { defineJob } from "@wrnexus/queue";
|
||||
|
||||
export interface WelcomeEmailPayload {
|
||||
userId: number;
|
||||
email: string;
|
||||
}
|
||||
|
||||
export default defineJob<WelcomeEmailPayload>({
|
||||
name: "welcome-email",
|
||||
async run(job) {
|
||||
console.log(`Welcome email queued for ${job.data.email}`);
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user