We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fbf579 commit 12251d3Copy full SHA for 12251d3
controlpanel/api/services/configmanager.js
@@ -65,6 +65,7 @@ module.exports = {
65
if (!protectedApp) return { type: 'error', code: 404, message: 'Invalid namespace or application supplied' };
66
const blocklist = await Blocklist.findAll({ where: { pa_id: protectedApp.id } });
67
for (const blockElement of blocklist) {
68
+ if (blockElement.content.Duration == 'forever') continue;
69
const duration = parseInt(blockElement.content.Duration.substring(0, blockElement.content.Duration.length - 1));
70
const ext = blockElement.content.Duration.slice(-1);
71
const unbanDate = new Date(blockElement.content.Time * 1000);
0 commit comments