mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-12-02 12:18:15 +08:00
fix: migration up error (#2135)
This commit is contained in:
parent
c32533e1b8
commit
e79ea701a3
@ -18,7 +18,7 @@ export default class extends Migration {
|
||||
}
|
||||
}
|
||||
instance = await systemSettings.findOne();
|
||||
if (!instance.get('options')?.mobileSchemaUid) {
|
||||
if (!instance?.options?.adminSchemaUid) {
|
||||
throw new Error('adminSchemaUid invalid');
|
||||
}
|
||||
this.app.log.info('systemSettings.options', instance.toJSON());
|
@ -18,7 +18,7 @@ export default class extends Migration {
|
||||
}
|
||||
}
|
||||
instance = await systemSettings.findOne();
|
||||
if (!instance.get('options')?.mobileSchemaUid) {
|
||||
if (!instance?.options?.mobileSchemaUid) {
|
||||
throw new Error('mobileSchemaUid invalid');
|
||||
}
|
||||
this.app.log.info('systemSettings.options', instance.toJSON());
|
Loading…
Reference in New Issue
Block a user