fix: emails used for recovery only, not notifications (notifications coming later)

This commit is contained in:
M1
2026-03-16 14:59:17 +04:00
parent 4e7fdfa07c
commit eb3ef7745f
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -36,7 +36,7 @@ export const account = new Elysia({ prefix: "/account" })
};
}, {
body: t.Object({
email: t.Optional(t.String({ format: "email", description: "Optional. Used for recovery and alerts." })),
email: t.Optional(t.String({ format: "email", description: "Optional. Used for account recovery only." })),
}),
detail: { summary: "Create account", tags: ["account"] },
})
@@ -51,7 +51,7 @@ export const account = new Elysia({ prefix: "/account" })
return { ok: true };
}, {
body: t.Object({
email: t.Optional(t.String({ description: "Email for recovery and notifications" })),
email: t.Optional(t.String({ description: "Email for account recovery only." })),
}),
detail: { summary: "Update account email", tags: ["account"] },
});