-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f085f04
commit 96ecaf1
Showing
19 changed files
with
103 additions
and
188 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<script setup lang="ts"> | ||
useHead({ title: "Home" }); | ||
useHead({ title: "Accueil" }); | ||
</script> | ||
|
||
<template> | ||
|
File renamed without changes.
This file was deleted.
Oops, something went wrong.
3 changes: 1 addition & 2 deletions
3
prisma/seeds/02-admin-user.ts → auth/server/seeds/admin-user.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { logger } from "@nuxt/kit"; | ||
import { type Job, Queue, QueueEvents, Worker } from "bullmq"; | ||
|
||
const { connection } = useRuntimeConfig(); | ||
|
||
// Dummy job data / return types | ||
export type DummyJobData = {}; | ||
export type DummyJobReturn = { | ||
message: string; | ||
}; | ||
|
||
export const dummyQueue = new Queue<DummyJobData, DummyJobReturn>("DummyJob", { connection }); | ||
export const dummyQueueEvents = new QueueEvents("DummyJob", { connection }); | ||
|
||
export const dummyWorker = new Worker<DummyJobData, DummyJobReturn>( | ||
"DummyJob", | ||
async (job: Job<DummyJobData>) => { | ||
return { message: `Dummy job ${job.name} executed successfully` }; | ||
}, | ||
{ connection }, | ||
) | ||
.on("failed", async (job, error) => { | ||
logger.error(`Dummy job ${job?.name} failed with error: ${error.message}`); | ||
}) | ||
.on("completed", async (job) => { | ||
logger.success(job.returnvalue.message); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.