mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: incorrect use of .map on a Set
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user