chuni: Changes to make compatible with old CHUNITHM

This commit is contained in:
cd6c1fd2d946dff292b101ca3305fc7f31d2dce5
2020-08-01 12:41:55 -04:00
committed by Tau
parent 94ed27503a
commit e61b103221
2 changed files with 45 additions and 2 deletions
+4 -1
View File
@@ -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);
}