This commit is contained in:
Lea 2023-03-25 20:47:54 +01:00
parent ff4d6eda69
commit cf7cdf03a6
Signed by: Lea
GPG key ID: 1BAFFE8347019C42

View file

@ -64,7 +64,7 @@ db.read().then(() => {
db.data.probation ||= [];
db.data.blocked ||= {};
if (db.data.blocked instanceof Array) {
if (Array.isArray(db.data.blocked)) {
console.log('Running migration: db.blocked');
const blocked = db.data.blocked as unknown as string[];