Commit ce55d460 authored by nanahira's avatar nanahira

fix

parent 5af89ca1
Pipeline #17486 passed with stages
in 3 minutes and 54 seconds
...@@ -142,6 +142,7 @@ export class UpdateService extends ConsoleLogger { ...@@ -142,6 +142,7 @@ export class UpdateService extends ConsoleLogger {
const archives = await this.db.getRepository(Archive).find({ const archives = await this.db.getRepository(Archive).find({
where: { path }, where: { path },
select: ['hash', 'path', 'size'], select: ['hash', 'path', 'size'],
take: 1,
}); });
if (!archives.length) { if (!archives.length) {
throw new BlankReturnMessageDto(404, 'Archive not found').toException(); throw new BlankReturnMessageDto(404, 'Archive not found').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