КБ
Size: a a a
КБ
<
<
query.andWhere('owners.data::jsonb @> :data', {
data: {
name: Like(`%${search}%`)
}
})<
<
query.orWhere(`owners.data->>'name' like :name`, {
name: `%${search}%`
})DE

ЛС
ЛС
DE
DE

const disciplineEntity = await this.disciplineService.findOneById(
lesson.disciplineId, //А вот этого нет, поэтому ничего и не происходит
);
ЛС
DE
async getLessons(scheduleId: number): Promise<LessonEntity[]> {
return await this.lessonRepository.find({
where: { schedule: scheduleId },
});ЛС
ЛС
DE
ЛС
ЛС
ЛС
ЛС
ЛС