From cd565eabe085cfd6d8c1231209e08b92c306f8c2 Mon Sep 17 00:00:00 2001 From: hlaaftana <10591326+hlaaftana@users.noreply.github.com> Date: Fri, 17 Apr 2020 14:40:18 +0300 Subject: [PATCH] Change to row --- src/forum.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/forum.nim b/src/forum.nim index e55ef11..88a6d5e 100644 --- a/src/forum.nim +++ b/src/forum.nim @@ -714,7 +714,7 @@ proc executeDeletePost(c: TForumData, postId: int) = select p.author, p.id from post p where p.author = ? and p.id = ? """ - let postRow = getValue(db, postQuery, c.username, postId) + let postRow = getRow(db, postQuery, c.username, postId) if postRow[1].len == 0 and not (c.rank == Admin or c.userid == postRow[0]): raise newForumError("You cannot delete this post")