mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +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) {
|
Posts.clearCachedPost = function (pid) {
|
||||||
const cache = require('./cache');
|
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) {
|
Posts.parseSignature = async function (userData, uid) {
|
||||||
|
|||||||
Reference in New Issue
Block a user