From a254e85ac16d68528c017d1d504e7c7c2f05cb28 Mon Sep 17 00:00:00 2001 From: naskya Date: Wed, 27 Dec 2023 05:34:16 +0900 Subject: [PATCH] chore: format --- packages/backend/src/server/api/endpoints/i/update.ts | 2 +- packages/client/src/pages/settings/preferences-backups.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/server/api/endpoints/i/update.ts b/packages/backend/src/server/api/endpoints/i/update.ts index a3d5f4d6..c438a33c 100644 --- a/packages/backend/src/server/api/endpoints/i/update.ts +++ b/packages/backend/src/server/api/endpoints/i/update.ts @@ -189,7 +189,7 @@ export default define(meta, paramDef, async (ps, _user, token) => { profileUpdates.mutedInstances = ps.mutedInstances; if (ps.mutingNotificationTypes !== undefined) profileUpdates.mutingNotificationTypes = - ps.mutingNotificationTypes as (typeof notificationTypes)[number][]; + ps.mutingNotificationTypes as typeof notificationTypes[number][]; if (typeof ps.isLocked === "boolean") updates.isLocked = ps.isLocked; if (typeof ps.isExplorable === "boolean") updates.isExplorable = ps.isExplorable; diff --git a/packages/client/src/pages/settings/preferences-backups.vue b/packages/client/src/pages/settings/preferences-backups.vue index 67a64eff..98840d22 100644 --- a/packages/client/src/pages/settings/preferences-backups.vue +++ b/packages/client/src/pages/settings/preferences-backups.vue @@ -189,7 +189,7 @@ function validate(profile: unknown): void { if (!profile.name) throw new Error("Missing required prop: name"); // if (!profile.misskeyVersion) - // throw new Error("Missing required prop: misskeyVersion"); + // throw new Error("Missing required prop: misskeyVersion"); // Check if createdAt and updatedAt is Date // https://zenn.dev/lollipop_onl/articles/eoz-judge-js-invalid-date