Commit 30d20680 authored by nanahira's avatar nanahira

fix getapp

parent f6d8b2a9
Pipeline #4956 passed with stages
in 1 minute and 16 seconds
......@@ -84,7 +84,11 @@ export class AppService extends ConsoleLogger {
if (id) {
query.andWhere('app.id = :id', { id });
}
query.leftJoinAndSelect('app.history', 'history');
query
.leftJoinAndSelect('app.history', 'history')
.leftJoinAndSelect('app.depots', 'depot')
.leftJoin('depot.builds', 'build')
.addSelect(['build.id', 'build.version']);
return new ReturnMessageDto(200, 'success', await query.getMany());
}
......
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