MOBILE-3833 lint: Fix type errors
parent
655e97213d
commit
3f1f52f5c3
|
@ -1261,7 +1261,7 @@ export class CoreCourseModulePrefetchDelegateService extends CoreDelegate<CoreCo
|
|||
previousTime?: number,
|
||||
): CourseUpdates {
|
||||
// Format the response to index it by module ID.
|
||||
CoreUtils.arrayToObject(response.instances, 'id', result);
|
||||
CoreUtils.arrayToObject<false | CheckUpdatesWSInstance>(response.instances, 'id', result);
|
||||
|
||||
// Treat warnings, adding the not supported modules.
|
||||
response.warnings?.forEach((warning) => {
|
||||
|
|
|
@ -60,7 +60,7 @@ export class SQLiteDBMock extends SQLiteDB {
|
|||
tx.executeSql(query, args, (tx, result) => {
|
||||
if (result.rows.length <= 0) {
|
||||
// No tables to delete, stop.
|
||||
resolve();
|
||||
resolve(null);
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue