Skip to content
This repository has been archived by the owner on Mar 22, 2018. It is now read-only.

Commit

Permalink
fixes #145
Browse files Browse the repository at this point in the history
  • Loading branch information
arafato committed Jan 15, 2018
1 parent f39fa27 commit ee73af9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/core/blob/StorageManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,11 @@ class StorageManager {

listBlobs(request, query) {
const condition = [];
condition.push({
'name': { '$contains': query.prefix }
});
if (query.prefix !== '') {
condition.push({
'name': { '$regex': `^${query.prefix}` }
});
}
condition.push({
'parentId': { '$eq': undefined } // blocks should never be part of the listing
});
Expand Down

0 comments on commit ee73af9

Please sign in to comment.