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

Commit a0e3d21

Browse files
author
haydenyoung
committed
Retrieve pubkey from post body.
1 parent ab093d1 commit a0e3d21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/orbitdb-api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ class OrbitdbAPI extends Express {
210210
var db_put_write_public_key = asyncMiddleware( async (req, res, next) => {
211211
let db
212212
db = await dbm.get(req.params.dbname)
213-
await db.access.grant('write', req.params.publicKey)
213+
await db.access.grant('write', req.body.publicKey)
214214

215215
return res.json('')
216216
});

0 commit comments

Comments
 (0)