Skip to content

Commit 3d5a137

Browse files
committed
MOBILE-1666 db: Replace where calls by whereEqual calls
1 parent 3f1d654 commit 3d5a137

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

www/core/lib/filepool.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2335,7 +2335,7 @@ angular.module('mm.core')
23352335
promises.push(db.remove(mmFilepoolStore, fileId));
23362336

23372337
// Remove links.
2338-
promises.push(db.where(mmFilepoolLinksStore, 'fileId', '=', fileId).then(function(entries) {
2338+
promises.push(db.whereEqual(mmFilepoolLinksStore, 'fileId', fileId).then(function(entries) {
23392339
return $q.all(entries.map(function(entry) {
23402340
return db.remove(mmFilepoolLinksStore, [entry.fileId, entry.component, entry.componentId]);
23412341
}));

0 commit comments

Comments
 (0)