mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-11-24 23:26:07 +09:00
Merge pull request '[PR]: fix: import settings backup' (#10240) from naskya/calckey:fix/import-settings-backups into develop
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/10240
This commit is contained in:
commit
a88f9c3921
@ -173,7 +173,11 @@ function validate(profile: unknown): void {
|
||||
if (!isObject(profile)) throw new Error("not an object");
|
||||
|
||||
// Check if unnecessary properties exist
|
||||
if (Object.keys(profile).some((key) => !profileProps.includes(key)))
|
||||
if (
|
||||
Object.keys(profile).some(
|
||||
(key) => !profileProps.includes(key) && key !== "host"
|
||||
)
|
||||
)
|
||||
throw new Error("Unnecessary properties exist");
|
||||
|
||||
if (!profile.name) throw new Error("Missing required prop: name");
|
||||
|
Loading…
Reference in New Issue
Block a user