Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return new Promise ((resolve, reject) => {
this.lokiAdapter = new LokiIndexedAdapter(`virtool-${dispatcher.settings.get("server_id")}`);
window.lokiAdapter = this.lokiAdapter;
this.loki = new Loki(null, {
env: "BROWSER",
autosave: true,
adapter: this.lokiAdapter
});
this.loki.loadDatabase({}, (err) => {
if (err) {
reject();
} else {
forIn(DEFINITIONS, (definition, collectionName) => {
let collection = this.loki.getCollection(collectionName);