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

Commit 14dfae5

Browse files
authored
Merge pull request #3 from veqtor/final_fixes
2 more bugs
2 parents 442b86e + 81a05ea commit 14dfae5

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

serverless.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ provider:
1616

1717
functions:
1818
handler:
19-
handler: index.handler
19+
handler: src/index.handler
2020
timeout: 120
2121
events:
2222
- http:

src/lib/router/readObjkt.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@
33
const { getObjktById, getRestrictedObjkts } = require('utils')
44

55
module.exports = async function readObjkt(req, res) {
6-
const { objkt_id: objktId, tz: tezosAddr } = req.body
7-
6+
const objktId = req.body.objkt_id
87
const restrictedObjkts = await getRestrictedObjkts()
98

10-
if (restrictedObjkts.includes(tezosAddr)) {
9+
if (restrictedObjkts.includes(objktId)) {
1110
return res.json({ result: [] })
1211
}
1312

0 commit comments

Comments
 (0)