bump version

This commit is contained in:
undefined committed 2025-04-03 02:32:22 +08:00
1 parent 8af621222c
commit 6aef4695f2
43 files changed
+96 -53

No files matched your search

+1 -1
View File
@@ -104,7 +104,7 @@ class ApiService extends Service {
constructor(ctx: Context) {
super(ctx, 'api');
this.rebuild = debounce(this.rebuild.bind(this), 500, { trailing: true });
ctx.on('ready', this.rebuild);
this.rebuild();
}
private rebuild() {
+2 -2
View File
@@ -178,10 +178,10 @@ export class MongoService extends Service {
}
/** @deprecated use ctx.db instead */
const db = new Proxy({} as MongoService, {
const deprecatedDb = new Proxy({} as MongoService, {
get(target, prop) {
return app.get('db')?.[prop];
},
});
export default db;
export default deprecatedDb;
@@ -63,6 +63,7 @@ export default class MigrationService extends Service {
dbVer++;
await system.set(name, dbVer);
}
logger.success('Database upgraded [%s]: current version %d', channel, dbVer);
}
}
}