Merge pull request #286 from akuokojnr/@akuokojnr/slate-link-bug

fix: deeplink slate query bug
This commit is contained in:
CAKE 2020-09-15 16:12:50 -07:00 committed by GitHub
commit b6676da858
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);