Commit d90e2bc4 authored by nanahira's avatar nanahira

remove

parent 6a30bfa6
Pipeline #4935 passed with stage
in 3 minutes and 44 seconds
......@@ -39,12 +39,13 @@ export class AdminController {
return this.appService.migrateHashes();
}
/*
@Post('migrate/filesField')
@ApiOperation({ summary: '迁移 file 字段' })
@ApiCreatedResponse({ type: BlankReturnMessageDto })
async migrateFilesField(): Promise<BlankReturnMessageDto> {
return this.appService.migrateFilesField();
}
}*/
@Put('app/:id')
@ApiOperation({ summary: '创建 app' })
......
......@@ -344,6 +344,7 @@ export class AppService extends ConsoleLogger {
return new BlankReturnMessageDto(200, 'success');
}
/*
async migrateFilesField() {
const archives = await this.db.getRepository(Archive).find({ select: ['id', 'files'] });
await this.db.transaction(async (edb) => {
......@@ -360,4 +361,6 @@ export class AppService extends ConsoleLogger {
this.log(`Done.`);
return new BlankReturnMessageDto(200, 'success');
}
*/
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment