fix: incorrect use of .map on a Set

This commit is contained in:
Julian Lam
2024-06-07 12:53:06 -04:00
parent d1625d5fd2
commit c6f2155f6a

View File

@@ -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) {