chore: format

This commit is contained in:
naskya 2023-12-27 05:34:16 +09:00
parent 4399e25398
commit a254e85ac1
Signed by: naskya
GPG key ID: 712D413B3A9FED5C
2 changed files with 2 additions and 2 deletions

View file

@ -189,7 +189,7 @@ export default define(meta, paramDef, async (ps, _user, token) => {
profileUpdates.mutedInstances = ps.mutedInstances; profileUpdates.mutedInstances = ps.mutedInstances;
if (ps.mutingNotificationTypes !== undefined) if (ps.mutingNotificationTypes !== undefined)
profileUpdates.mutingNotificationTypes = 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.isLocked === "boolean") updates.isLocked = ps.isLocked;
if (typeof ps.isExplorable === "boolean") if (typeof ps.isExplorable === "boolean")
updates.isExplorable = ps.isExplorable; updates.isExplorable = ps.isExplorable;

View file

@ -189,7 +189,7 @@ function validate(profile: unknown): void {
if (!profile.name) throw new Error("Missing required prop: name"); if (!profile.name) throw new Error("Missing required prop: name");
// if (!profile.misskeyVersion) // if (!profile.misskeyVersion)
// throw new Error("Missing required prop: misskeyVersion"); // throw new Error("Missing required prop: misskeyVersion");
// Check if createdAt and updatedAt is Date // Check if createdAt and updatedAt is Date
// https://zenn.dev/lollipop_onl/articles/eoz-judge-js-invalid-date // https://zenn.dev/lollipop_onl/articles/eoz-judge-js-invalid-date