Skip to content

Commit

Permalink
fix cache capes/banner
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiAF committed Jan 16, 2024
1 parent bfc0434 commit 095ec72
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ const DEVMODE: boolean = process.env.DEVMODE?.toLowerCase() == 'true';
if (!fs.existsSync('cache')) fs.mkdirSync('cache', { recursive: true });
if (!fs.existsSync('cache/skins')) fs.mkdirSync('cache/skins', { recursive: true });
if (!fs.existsSync('cache/capes')) fs.mkdirSync('cache/capes', { recursive: true });
if (!fs.existsSync('cache/banner')) fs.mkdirSync('cache/capes/banner', { recursive: true });
if (!fs.existsSync('cache/capes/banner')) fs.mkdirSync('cache/capes/banner', { recursive: true });
if (!fs.existsSync('cache/users')) fs.mkdirSync('cache/users', { recursive: true });

connectToDatabase(); // connect to database

Expand Down

0 comments on commit 095ec72

Please sign in to comment.