diff --git a/src/utils/get-collection.ts b/src/utils/get-collection.ts index 760ef76..90ce705 100644 --- a/src/utils/get-collection.ts +++ b/src/utils/get-collection.ts @@ -5,7 +5,7 @@ export default function(db: loki, name: string, opts?: any): loki.Collection { collection = db.getCollection(name); - if (collection === null) { + if (collection == null) { collection = db.addCollection(name, opts); }