fix: history response

This commit is contained in:
Methapon2001 2024-03-12 17:01:02 +07:00
parent 51beb3615d
commit 03ce83b898
4 changed files with 4 additions and 4 deletions

View file

@ -41,7 +41,7 @@ export class ProfileCertificateController extends Controller {
const record = await this.certificateHistoryRepo.findBy({ const record = await this.certificateHistoryRepo.findBy({
profileCertificateId: certificateId, profileCertificateId: certificateId,
}); });
return record; return new HttpSuccess(record);
} }
@Post() @Post()

View file

@ -37,7 +37,7 @@ export class ProfileHonorController extends Controller {
const record = await this.honorHistoryRepo.findBy({ const record = await this.honorHistoryRepo.findBy({
profileHonorId: honorId, profileHonorId: honorId,
}); });
return record; return new HttpSuccess(record);
} }
@Post() @Post()

View file

@ -41,7 +41,7 @@ export class ProfileInsigniaController extends Controller {
const record = await this.insigniaHistoryRepo.findBy({ const record = await this.insigniaHistoryRepo.findBy({
profileInsigniaId: InsigniaId, profileInsigniaId: InsigniaId,
}); });
return record; return new HttpSuccess(record);
} }
@Post() @Post()

View file

@ -41,7 +41,7 @@ export class ProfileTrainingController extends Controller {
const record = await this.trainingHistoryRepo.findBy({ const record = await this.trainingHistoryRepo.findBy({
profileTrainingId: trainingId, profileTrainingId: trainingId,
}); });
return record; return new HttpSuccess(record);
} }
@Post() @Post()