From d50473dfeb11cf707399af56507ec2c57ddee802 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Mon, 25 Sep 2023 11:20:21 -0400 Subject: [PATCH] fix: pass in missing uid --- src/posts/create.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/posts/create.js b/src/posts/create.js index b248f04a36..d541564c2e 100644 --- a/src/posts/create.js +++ b/src/posts/create.js @@ -25,7 +25,7 @@ module.exports = function (Posts) { } if (data.toPid) { - await checkToPid(data.toPid); + await checkToPid(data.toPid, uid); } const pid = await db.incrObjectField('global', 'nextPid');