From 1d4fca73c04e454c53f5b8e01a8b8858e3efe472 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Wed, 8 Sep 2021 13:21:48 +0200 Subject: [PATCH] MOBILE-3552 h5p: Fix some dependencies not added to cached assets --- src/core/features/h5p/classes/framework.ts | 2 +- src/core/features/h5p/classes/validator.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/features/h5p/classes/framework.ts b/src/core/features/h5p/classes/framework.ts index bbdf06594..b54c08901 100644 --- a/src/core/features/h5p/classes/framework.ts +++ b/src/core/features/h5p/classes/framework.ts @@ -419,7 +419,7 @@ export class CoreH5PFramework { 'l1.patchversion AS patchVersion, l1.addto AS addTo, ' + 'l1.preloadedjs AS preloadedJs, l1.preloadedcss AS preloadedCss ' + 'FROM ' + LIBRARIES_TABLE_NAME + ' l1 ' + - 'JOIN ' + LIBRARIES_TABLE_NAME + ' l2 ON l1.machinename = l2.machinename AND (' + + 'LEFT JOIN ' + LIBRARIES_TABLE_NAME + ' l2 ON l1.machinename = l2.machinename AND (' + 'l1.majorversion < l2.majorversion OR (l1.majorversion = l2.majorversion AND ' + 'l1.minorversion < l2.minorversion)) ' + 'WHERE l1.addto IS NOT NULL AND l2.machinename IS NULL'; diff --git a/src/core/features/h5p/classes/validator.ts b/src/core/features/h5p/classes/validator.ts index a957443d7..e3ec91d49 100644 --- a/src/core/features/h5p/classes/validator.ts +++ b/src/core/features/h5p/classes/validator.ts @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +import { FileEntry, DirectoryEntry } from '@ionic-native/file/ngx'; import { CoreFile, CoreFileFormat } from '@services/file'; import { CoreTextUtils } from '@services/utils/text'; import { CoreH5PSemantics } from './content-validator';