Browse Source

format todos

pull/1695/head
Bernd Storath 5 months ago
parent
commit
810483bac6
  1. 2
      src/app/pages/index.vue
  2. 2
      src/server/api/session.post.ts
  3. 2
      src/server/database/repositories/general/types.ts

2
src/app/pages/index.vue

@ -42,8 +42,6 @@ const intervalId = ref<NodeJS.Timeout | null>(null);
clientsStore.refresh(); clientsStore.refresh();
onMounted(() => { onMounted(() => {
// TODO: remove (to avoid console spam)
return;
// TODO?: replace with websocket or similar // TODO?: replace with websocket or similar
intervalId.value = setInterval(() => { intervalId.value = setInterval(() => {
clientsStore clientsStore

2
src/server/api/session.post.ts

@ -28,7 +28,7 @@ export default defineEventHandler(async (event) => {
userId: user.id, userId: user.id,
}); });
// TODO: create audit log? // TODO?: create audit log
SERVER_DEBUG(`New Session: ${data.id} for ${user.id} (${user.username})`); SERVER_DEBUG(`New Session: ${data.id} for ${user.id} (${user.username})`);

2
src/server/database/repositories/general/types.ts

@ -11,7 +11,7 @@ const metricsEnabled = z.boolean({ message: t('zod.general.metricsEnabled') });
const metricsPassword = z const metricsPassword = z
.string({ message: t('zod.general.metricsPassword') }) .string({ message: t('zod.general.metricsPassword') })
.min(1, { message: t('zod.general.metricsPassword') }) .min(1, { message: t('zod.general.metricsPassword') })
// TODO: validate argon2 regex? // TODO?: validate argon2 regex
.nullable(); .nullable();
export const GeneralUpdateSchema = z.object({ export const GeneralUpdateSchema = z.object({

Loading…
Cancel
Save