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}`);
  },
});
