You've already forked obsidian-visualiser
Add mail template, mail HTML generation and a few UI fixes
This commit is contained in:
@@ -1,5 +1,13 @@
|
||||
import { hasPermissions } from "#shared/auth.util";
|
||||
|
||||
declare module 'nitropack'
|
||||
{
|
||||
interface TaskPayload
|
||||
{
|
||||
type: string
|
||||
}
|
||||
}
|
||||
|
||||
export default defineEventHandler(async (e) => {
|
||||
const session = await getUserSession(e);
|
||||
|
||||
@@ -16,6 +24,9 @@ export default defineEventHandler(async (e) => {
|
||||
setResponseStatus(e, 400);
|
||||
return;
|
||||
}
|
||||
|
||||
payload.type = id;
|
||||
payload.data = JSON.parse(payload.data);
|
||||
|
||||
const result = await runTask(id, {
|
||||
payload: payload
|
||||
|
||||
Reference in New Issue
Block a user