feat: add relation query

This commit is contained in:
Methapon2001 2024-03-20 15:35:18 +07:00
parent aebf14ba54
commit 4dbef45d2c

View file

@ -204,6 +204,10 @@ export class ProfileController extends Controller {
@Get("{id}")
async detailProfile(@Path() id: string) {
const profile = await this.profileRepository.findOne({
relations: {
posLevel: true,
posType: true,
},
where: { id },
select: [
"id",