Fix permission errors when reading audit logs (#25)
Note: This PR depends on #24
This error does not actually break any functionality but it both
clutters the logs and may cause problems at scale if we start hitting
the API error limit
diff --git a/src/config/default.ts b/src/config/default.ts
index dfdf29a..f0b931e 100644
--- a/src/config/default.ts
+++ b/src/config/default.ts
@@ -61,7 +61,7 @@
stats: {},
logging: {
logs: {
- enabled: true,
+ enabled: false,
channel: null,
toLog: "3fffff"
},
diff --git a/src/utils/migration/migration.ts b/src/utils/migration/migration.ts
new file mode 100644
index 0000000..ad2927b
--- /dev/null
+++ b/src/utils/migration/migration.ts
@@ -0,0 +1,10 @@
+import * as fs from 'fs';
+
+const dir = './data';
+const files = fs.readdirSync(dir);
+
+for (const file of files) {
+ const rsmData = fs.readFileSync(`${dir}/${file}`, 'utf8');
+ const nucleusData = ""
+
+}