oop
This commit is contained in:
parent
ff4d6eda69
commit
cf7cdf03a6
|
@ -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[];
|
||||
|
|
Loading…
Reference in a new issue