forked from naskya/firefish
chore: format
This commit is contained in:
parent
4399e25398
commit
a254e85ac1
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue