chore: stop requiring misskeyVersion in preference backups

This commit is contained in:
naskya 2024-03-01 07:33:59 +09:00
parent 020c421c9b
commit 20ca238b59
No known key found for this signature in database
GPG key ID: 712D413B3A9FED5C

View file

@ -191,8 +191,6 @@ function validate(profile: unknown): void {
throw new Error("Unnecessary properties exist");
if (!profile.name) throw new Error("Missing required prop: name");
if (!profile.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