feat: 支持发布单 MySQL 持久化
This commit is contained in:
@@ -62,7 +62,7 @@ export class DeployRunsService {
|
||||
|
||||
const project = await this.projectsService.getProject(input.projectKey);
|
||||
this.validateReleaseRequest(input, project);
|
||||
const run = this.deployRunRepository.create(input);
|
||||
const run = await this.deployRunRepository.create(input);
|
||||
|
||||
this.auditService.record({
|
||||
action: 'DEPLOY_REQUESTED',
|
||||
@@ -81,7 +81,7 @@ export class DeployRunsService {
|
||||
}
|
||||
|
||||
async cancelRun(id: string): Promise<DeployRunSummary> {
|
||||
const run = this.deployRunRepository.updateMemoryStatus(id, 'canceled');
|
||||
const run = await this.deployRunRepository.updateStatus(id, 'canceled');
|
||||
|
||||
if (!run) {
|
||||
throw new AppError(
|
||||
|
||||
Reference in New Issue
Block a user