orbitdb-archive / orbit-db-http-api

A HTTP API Server for the OrbitDB distributed peer-to-peer database
MIT License
37 stars 11 forks source link

Delete a database. #2

Closed haydenyoung closed 5 years ago

haydenyoung commented 5 years ago

Delete a db from the local peer.

Please let me know if anything can be better implemented and I will make the change.

haydenyoung commented 5 years ago

The async middleware wrapper should catch any errors, so the try-catch block should be redundant

Updated.

Is the db_list_remove method the most ideal way of updating the db list or should I rework the db_list to check that the db exists and trim it if it doesn't?

phillmac commented 5 years ago

Seems pretty logical to me the way it is.