Remove debounce (didnt need it)

This commit is contained in:
Christopher Cookman 2024-07-22 16:41:57 -06:00
parent 12c15fc62d
commit 8a6a0d5510
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -295,12 +295,11 @@ fs.readdirSync(process.env.CONFIG_PATH).forEach(file => {
break;
}
})
var check;
const watchFiles = () => {
fs.watch(process.env.CONFIG_PATH, (event, file) => {
clearTimeout(check); // Debounce
if (file.startsWith(".")) return; // Ignore hidden files
check = setTimeout(() => {
setTimeout(() => {
tmp = {}
newContents = fs.readFileSync(path.join(process.env.CONFIG_PATH, file)).toString()
switch (file) {