From f83a3672cabb093f614d07bcb03a72cf5797eb89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Fri, 7 Jun 2024 12:58:04 -0400 Subject: [PATCH] fix: set --- src/posts/parse.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/posts/parse.js b/src/posts/parse.js index e51128b6e4..b8ce1dd3db 100644 --- a/src/posts/parse.js +++ b/src/posts/parse.js @@ -72,7 +72,7 @@ module.exports = function (Posts) { Posts.clearCachedPost = function (pid) { const cache = require('./cache'); - cache.del(allowedTypes.map(type => `${String(pid)}|${type}`)); + cache.del(Array.from(allowedTypes).map(type => `${String(pid)}|${type}`)); }; Posts.parseSignature = async function (userData, uid) {