Commit cf2e61b1 authored by nanahira's avatar nanahira

don't return the whole build

parent 5ca9803e
Pipeline #4831 passed with stages
in 1 minute and 40 seconds
......@@ -115,7 +115,7 @@ export class AppController {
description: 'app 的 tar.zst 文件',
type: FileUploadDto,
})
@ApiCreatedResponse({ type: BuildReturnMessageDto })
@ApiCreatedResponse({ type: BlankReturnMessageDto })
async makeBuild(
@FetchMyCardUser() user: MyCardUser,
@Param('id') id: string,
......
......@@ -193,7 +193,8 @@ export class AppService extends ConsoleLogger {
const result = await this.packager.build(stream, app.packagePrefix, previousTracingBuildChecksums);
build.checksum = result.checksum;
build.archives = result.archives;
return new ReturnMessageDto(201, 'success', await this.db.getRepository(Build).save(build));
await this.db.getRepository(Build).save(build);
return new BlankReturnMessageDto(201, 'success');
} catch (e) {
this.error(`Build ${app.id} ${JSON.stringify(depotDto.toActual)} ${build.version} failed: ${e.toString()}`);
throw new BlankReturnMessageDto(500, 'Build failed').toException();
......
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