Skip to content

Commit

Permalink
bug in dev mode for combined metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
thelamer committed Dec 28, 2021
1 parent 7adab85 commit 5a74df2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ io.on('connection', async function (socket) {
async function downloadArt(dir) {
var metaData = await fsw.readFile('./metadata/' + dir + '.json', 'utf8');
var metaData = JSON.parse(metaData);
if (fs.existsSync('/data/metadata/' + dir + '.json')) {
if (fs.existsSync(dataRoot + 'metadata/' + dir + '.json')) {
var userMetaData = await fsw.readFile(dataRoot + 'metadata/' + dir + '.json', 'utf8');
var userMetaData = JSON.parse(userMetaData);
Object.assign(metaData, userMetaData);
Expand Down

0 comments on commit 5a74df2

Please sign in to comment.