mirror of
https://github.com/filecoin-project/slate.git
synced 2024-12-26 10:34:09 +03:00
Merge pull request #286 from akuokojnr/@akuokojnr/slate-link-bug
fix: deeplink slate query bug
This commit is contained in:
commit
b6676da858
@ -15,7 +15,7 @@ export default async (req, res) => {
|
||||
|
||||
if (req.body.data.deeplink) {
|
||||
if (slates.length) {
|
||||
const slate = { ...slates[0] };
|
||||
const slate = slates.filter((item) => item.slatename === query)[0];
|
||||
const user = await Data.getUserById({ id: slate.data.ownerId });
|
||||
slate.user = Serializers.user(user);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user