wisdom #5

Merged
bragaz_rexita merged 3 commits from wisdom into main 2025-10-24 03:35:12 +00:00
Showing only changes of commit cec23e4777 - Show all commits

View File

@@ -37,9 +37,9 @@ const getAllUserScheduleDb = async (searchParams = {}) => {
c.end_time,
d.user_fullname
FROM user_schedule a
LEFT JOIN schedule b ON a.user_schedule_id = b.schedule_id
LEFT JOIN m_shift c ON a.user_schedule_id = c.shift_id
LEFT JOIN m_users d ON a.user_schedule_id = d.user_id
LEFT JOIN schedule b ON a.schedule_id = b.schedule_id
LEFT JOIN m_shift c ON a.shift_id = c.shift_id
LEFT JOIN m_users d ON a.user_id = d.user_id
WHERE a.deleted_at IS NULL
${whereConditions.length > 0 ? ` AND ${whereConditions.join(" AND ")}` : ""}
${whereOrConditions ? ` ${whereOrConditions}` : ""}