From e4ed9301fbf50ec102a00f17c23b6e346521c4be Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Fri, 8 Dec 2017 15:42:17 +0100 Subject: [PATCH] MOBILE-2253 core: Fix processQueue in filepool --- src/providers/filepool.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/providers/filepool.ts b/src/providers/filepool.ts index da1208c79..a27518484 100644 --- a/src/providers/filepool.ts +++ b/src/providers/filepool.ts @@ -2269,8 +2269,8 @@ export class CoreFilepoolProvider { * * @return {Promise} Resolved on success. Rejected on failure. */ - protected processImportantQueueItem() : void { - this.appDB.getRecords(this.QUEUE_TABLE, null, 'priority DESC, added ASC', null, 0, 1).then((items) => { + protected processImportantQueueItem() : Promise { + return this.appDB.getRecords(this.QUEUE_TABLE, null, 'priority DESC, added ASC', null, 0, 1).then((items) => { let item = items.pop(); if (!item) { return Promise.reject(this.ERR_QUEUE_IS_EMPTY);