From f279b61484070238abe0e4990758e18974d35f18 Mon Sep 17 00:00:00 2001 From: fatchan Date: Wed, 16 Oct 2019 08:47:50 +0000 Subject: [PATCH] delete banners on board delete --- models/forms/deleteboard.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/models/forms/deleteboard.js b/models/forms/deleteboard.js index a6feb32e..acd64da5 100644 --- a/models/forms/deleteboard.js +++ b/models/forms/deleteboard.js @@ -20,7 +20,8 @@ module.exports = async (uri) => { Bans.deleteBoard(uri), //bans for the board Stats.deleteBoard(uri), //stats for the board remove(`${uploadDirectory}/html/${uri}/`), //html - remove(`${uploadDirectory}/json/${uri}/`) //json + remove(`${uploadDirectory}/json/${uri}/`), //json + remove(`${uploadDirectory}/banners/${uri}/`) //banners ]); }