fix(plugin-multi-portal): detect empty app version

This commit is contained in:
Zeke Zhang
2026-07-30 10:23:42 +08:00
parent 0ac476ee4e
commit 4467b4acf7
@@ -3543,7 +3543,7 @@ export class PluginMultiPortalServer extends Plugin {
async install() {
const version = await this.app.version.get();
if (version === null) {
if (!version) {
await ensureDefaultRoleMultiPortalAccess(this.db);
await seedFreshMultiPortals(this.db);
} else {