Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit faf97d1

Browse files
committed
Fix missing dbMiddleware
1 parent 44a4f43 commit faf97d1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/orbitdb-api.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class OrbitdbAPI {
5858
{
5959
method: 'GET',
6060
path: '/dbs',
61-
handler: (_request, h) => dbm.db_list()
61+
handler: (_request, _h) => dbm.db_list()
6262
},
6363
{
6464
method: ['POST', 'PUT'],
@@ -95,7 +95,7 @@ class OrbitdbAPI {
9595
{
9696
method: 'DELETE',
9797
path: '/db/{dbname}/{item}',
98-
handler: async (db, request, _h) => {
98+
handler: dbMiddleware (async (db, request, _h) => {
9999
if (db.del) {
100100
return {hash: await db.del(request.params.item)};
101101
} else if (db.remove) {
@@ -107,7 +107,7 @@ class OrbitdbAPI {
107107
dbtype: db.type
108108
});
109109
}
110-
}
110+
})
111111
},
112112
{
113113
method: ['POST', 'PUT'],

0 commit comments

Comments
 (0)