MOBILE-3833 lint: Fix type errors

main
Pau Ferrer Ocaña 2021-07-27 14:36:09 +02:00
parent 655e97213d
commit 3f1f52f5c3
2 changed files with 2 additions and 2 deletions

View File

@ -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) => {

View File

@ -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;
}