no message

This commit is contained in:
kittapath 2024-12-26 23:05:55 +07:00
parent d44de0bb09
commit 91ba933a65
3 changed files with 5 additions and 5 deletions

View file

@ -3500,7 +3500,7 @@ export class CommandController extends Controller {
} }
let profile: any = await this.profileRepository.findOne({ let profile: any = await this.profileRepository.findOne({
where: { citizenId: item.bodyProfile.citizenId }, where: { citizenId: item.bodyProfile.citizenId, isActive: true },
relations: ["roleKeycloaks"], relations: ["roleKeycloaks"],
}); });
if (!profile) { if (!profile) {

View file

@ -5829,7 +5829,7 @@ export class ProfileController extends Controller {
@Get("citizenid/position/{id}") @Get("citizenid/position/{id}")
async getProfileByCitizenId(@Request() request: RequestWithUser, @Path() id: string) { async getProfileByCitizenId(@Request() request: RequestWithUser, @Path() id: string) {
const profile = await this.profileRepo.findOne({ const profile = await this.profileRepo.findOne({
where: { citizenId: id }, where: { citizenId: id, isActive: true },
relations: [ relations: [
"posLevel", "posLevel",
"posType", "posType",