@wxn0brp/db-storage-bin 0.100.1 → 0.100.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions.js +2 -2
- package/package.json +1 -1
package/dist/actions.js
CHANGED
|
@@ -29,8 +29,8 @@ export class BinFileAction extends CustomActionsBase {
|
|
|
29
29
|
* Check and create the specified collection if it doesn't exist.
|
|
30
30
|
*/
|
|
31
31
|
async ensureCollection(collection) {
|
|
32
|
-
if (await this.issetCollection(
|
|
33
|
-
return;
|
|
32
|
+
if (await this.issetCollection(collection))
|
|
33
|
+
return false;
|
|
34
34
|
await this.mgr.write(collection, []);
|
|
35
35
|
return true;
|
|
36
36
|
}
|