fix: history response
This commit is contained in:
parent
51beb3615d
commit
03ce83b898
4 changed files with 4 additions and 4 deletions
|
|
@ -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()
|
||||||
|
|
|
||||||
|
|
@ -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()
|
||||||
|
|
|
||||||
|
|
@ -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()
|
||||||
|
|
|
||||||
|
|
@ -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()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue