From 2c477ec919b8b5f4fc57649d5e37170f99790e64 Mon Sep 17 00:00:00 2001 From: Jonathan Barrow Date: Tue, 3 Oct 2023 13:23:18 -0400 Subject: [PATCH] wrong feeling_id check --- src/models/post.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/post.ts b/src/models/post.ts index 8849074..663918a 100644 --- a/src/models/post.ts +++ b/src/models/post.ts @@ -198,7 +198,7 @@ PostSchema.method('json', function json(options: PostToJSO } // * Some sanity checks - if (post.feeling_id < 5) { + if (post.feeling_id > 5) { post.feeling_id = 0; }