本地的 server 里
async install() {
const repo = this.db.getRepository<any>('collections');
if (repo) {
await repo.db2cm('CollectionName');
}
}
本地的 server 里
async install() {
const repo = this.db.getRepository<any>('collections');
if (repo) {
await repo.db2cm('CollectionName');
}
}