Skip to content

Commit

Permalink
git stupid
Browse files Browse the repository at this point in the history
  • Loading branch information
Ianyourgod committed Feb 26, 2024
1 parent f52e874 commit eb8213b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/db/UserManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ class UserManager {
await this.users.deleteMany({});
await this.reports.deleteMany({});
await this.projects.deleteMany({});
if (!fs.existsSync(path.join(__dirname, "projects"))) {
fs.mkdirSync(path.join(__dirname, "projects"));
}
if (fs.existsSync(path.join(__dirname, "projects/files")) && fs.existsSync(path.join(__dirname, "projects/images"))) {
fs.rmSync(path.join(__dirname, "projects/files"), { recursive: true, force: true });
fs.rmSync(path.join(__dirname, "projects/images"), { recursive: true, force: true });
Expand Down

0 comments on commit eb8213b

Please sign in to comment.