Add dynamic text compiling and dynamic children list rendering on DOM.

This commit is contained in:
Clément Pons
2025-12-08 17:41:39 +01:00
parent b1229f81f6
commit 6f5566326e
20 changed files with 1500 additions and 312 deletions

View File

@@ -2,7 +2,6 @@ import { hash } from "bun";
import { eq } from "drizzle-orm";
import useDatabase from "~/composables/useDatabase";
import { usersTable } from "~/db/schema";
import sendMail from '~/../server/tasks/mail';
export default defineEventHandler(async (e) => {
const session = await getUserSession(e);
@@ -57,7 +56,7 @@ export default defineEventHandler(async (e) => {
id: emailId, timestamp,
}
});
await sendMail({
await runTask('mail', {
payload: {
type: 'mail',
to: [data.email],