chuni: Changes to make compatible with old CHUNITHM
This commit is contained in:
committed by
Tau
parent
94ed27503a
commit
e61b103221
@@ -37,7 +37,10 @@ export class SqlUserCourseRepository implements UserCourseRepository {
|
||||
.from("cm_user_course")
|
||||
.where("profile_id", profileId);
|
||||
|
||||
if (page) {
|
||||
/**
|
||||
* UserCourse has no paging before CHUNITHM Amazon
|
||||
*/
|
||||
if (page && !isNaN(page.limit)) {
|
||||
stmt.limit(page.limit).offset(page.offset);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user