@dongdev/fca-unofficial 2.0.3 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -0
- package/package.json +1 -1
- package/src/api/threads/getThreadInfo.js +2 -2
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
@@ -167,8 +167,8 @@ module.exports = function (defaultFuncs, api, ctx) {
|
|
167
167
|
return { Success: false, Data: null, Error: lastErr ? String(lastErr.message || lastErr) : "Unknown" };
|
168
168
|
};
|
169
169
|
|
170
|
-
const dbFiles = fs.readdirSync(path.join(__dirname, "
|
171
|
-
acc[path.basename(file, ".js")] = require(path.join(__dirname, "
|
170
|
+
const dbFiles = fs.readdirSync(path.join(__dirname, "../../database")).filter(f => path.extname(f) === ".js").reduce((acc, file) => {
|
171
|
+
acc[path.basename(file, ".js")] = require(path.join(__dirname, "../../database", file))(api);
|
172
172
|
return acc;
|
173
173
|
}, {});
|
174
174
|
const { threadData } = dbFiles;
|