Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
C
console
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
console
Commits
d90e2bc4
Commit
d90e2bc4
authored
Aug 24, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove
parent
6a30bfa6
Pipeline
#4935
passed with stage
in 3 minutes and 44 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
console-api/src/admin/admin.controller.ts
console-api/src/admin/admin.controller.ts
+2
-1
console-api/src/app.service.ts
console-api/src/app.service.ts
+3
-0
No files found.
console-api/src/admin/admin.controller.ts
View file @
d90e2bc4
...
...
@@ -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
'
})
...
...
console-api/src/app.service.ts
View file @
d90e2bc4
...
...
@@ -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');
}
*/
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment