Require statements now use path.join correctly.

This commit is contained in:
2020-11-24 23:37:14 +01:00
parent 236c07f3d0
commit ad27ba8b33
12 changed files with 45 additions and 46 deletions

View File

@@ -1,7 +1,7 @@
const path = require('path');
const Highscore = require(path.join(__dirname + '/../schemas/Highscore'));
const Wine = require(path.join(__dirname + '/../schemas/Wine'));
const Highscore = require(path.join(__dirname, '/schemas/Highscore'));
const Wine = require(path.join(__dirname, '/schemas/Wine'));
// Utils
const epochToDateString = date => new Date(parseInt(date)).toDateString();