src/levelDB.js
// Add data to levelDB with key/value pair
Add data to levelDB with key/value pair
Add data to levelDB with key / value pair
addLevelDBData(key, value) {
    return new Promise((resolve, reject) => {
      this.db.put(key, value, (err) => {
        if (err) {
          console.log(`Key ${key} submission failed`, err)
          return reject(err)
        }
        return resolve({key, value})
      })
    })
  }
addLevelDBData ( key , value ) { return new Promise ( ( resolve , reject ) => { this . db . put ( key , value , ( err ) => { if ( err ) { console . log ( ` ${ key } ` , err ) return reject ( err ) } return resolve ( { key , value } ) } ) } ) }
Add data to levelDB with key/value pair
Add data to levelDB with key / value pair