Skip to content

Commit

Permalink
fix: wrong config filename of plugin of checking
Browse files Browse the repository at this point in the history
# Problems
- missing .js in tail
  • Loading branch information
Chinlinlee committed Jun 16, 2023
1 parent 2affdd5 commit 4b6de1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const fs = require("fs");
const { Plugin, pluginGroup } = require("./plugins/plugin.class");
let pluginsConfig;
if (fs.existsSync("./plugins/config")) {
if (fs.existsSync("./plugins/config.js")) {
pluginsConfig = require("./plugins/config").pluginsConfig;
} else {
pluginsConfig = require("./plugins/config.template").pluginsConfig;
Expand Down

0 comments on commit 4b6de1a

Please sign in to comment.