mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 06:35:20 +00:00
fix(theme-editor): migration error
This commit is contained in:
parent
2008bfa54a
commit
2ac377161f
@ -17,12 +17,8 @@ export default class ThemeEditorMigration extends Migration {
|
||||
}
|
||||
|
||||
const collection = this.db.getCollection('themeConfig');
|
||||
if (!collection.hasField('uid')) {
|
||||
collection.addField('uid', {
|
||||
type: 'uid',
|
||||
});
|
||||
}
|
||||
collection.sync();
|
||||
|
||||
await collection.sync();
|
||||
|
||||
const themes = {
|
||||
[defaultTheme.uid]: defaultTheme,
|
Loading…
Reference in New Issue
Block a user