From c6f2155f6af0a83e3821092bf2df54d16c92c03d Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 7 Jun 2024 12:53:06 -0400 Subject: [PATCH] fix: incorrect use of .map on a 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) {