From d97916efe41d5582cb569c7a592648d10c49a0fc Mon Sep 17 00:00:00 2001 From: Ezerous Date: Wed, 2 Dec 2020 20:41:54 +0200 Subject: [PATCH] Fix level database name --- package.json | 2 +- src/levelUtils.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index d51fed8..7cb210b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ezerous/eth-identity-provider", - "version": "0.1.0", + "version": "0.1.1", "description": "An Ethereum orbit-db-identity-provider.", "license": "MIT", "author": "Ezerous ", diff --git a/src/levelUtils.js b/src/levelUtils.js index 344fde3..0d49850 100644 --- a/src/levelUtils.js +++ b/src/levelUtils.js @@ -3,17 +3,17 @@ import level from 'level'; /* Used in development only to store the identity.signatures.publicKey so developers don't have to repeatedly sign theOrbitDB creation transaction in MetaMask when React development server reloads the app */ -const concordiaDB = level('./concordia/identities'); +const ethProviderDB = level('ethprovider/identities'); async function storeIdentitySignaturePubKey(key, signaturePubKey) { - await concordiaDB.put(key, signaturePubKey); + await ethProviderDB.put(key, signaturePubKey); } // If it exists, it returns the identity.signatures.publicKey for the given key (key is the // concatenation of identity.publicKey + identity.signatures.id) async function getIdentitySignaturePubKey(key) { try { - return await concordiaDB.get(key); + return await ethProviderDB.get(key); } catch (err) { if (err && err.notFound) return null; // Not found throw err;