wrong feeling_id check

This commit is contained in:
Jonathan Barrow
2023-10-03 13:23:18 -04:00
parent eab3c10e68
commit 2c477ec919

View File

@@ -198,7 +198,7 @@ PostSchema.method<HydratedPostDocument>('json', function json(options: PostToJSO
}
// * Some sanity checks
if (post.feeling_id < 5) {
if (post.feeling_id > 5) {
post.feeling_id = 0;
}