This commit is contained in:
Barış Soner Uşaklı
2024-06-07 12:58:04 -04:00
parent d1625d5fd2
commit f83a3672ca

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