feat: 支持发布单 MySQL 持久化

This commit is contained in:
湛兮
2026-06-11 22:33:50 +08:00
parent b5ee9b3648
commit d0375257ce
5 changed files with 565 additions and 112 deletions
+2 -2
View File
@@ -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(