formatting

This commit is contained in:
Ean Milligan
2026-04-09 17:09:39 -04:00
parent 57a9678f38
commit 8096598244

2
mod.ts
View File

@@ -78,8 +78,8 @@ Deno.serve({ port: config.api.port }, async (req) => {
} else if (path === '/create') {
if (body.planName.trim().length > 200) return genericResponse(STATUS_CODE.BadRequest, 'Name too long.');
if (body.folder.trim() && body.folder.trim().length > 200) return genericResponse(STATUS_CODE.BadRequest, 'Folder name too long.');
const newPlanId = nanoid();
const newPlanId = nanoid();
await dbClient
.execute('INSERT INTO plans(id,ownerId,name,folder,data) values(?,?,?,?,?)', [newPlanId, id, body.planName.trim(), body.folder.trim(), body.data])
.catch(() => {