Saving questions

This commit is contained in:
mrfry 2020-12-25 18:01:45 +01:00
parent 8d2bc709f3
commit 2998239344
3 changed files with 86 additions and 27 deletions

View file

@ -296,7 +296,7 @@ export function loadJSON(
dataDir: string
): Array<QuestionDb> {
return dataFiles.reduce((acc, dataFile, index) => {
const dataPath = dataDir + dataFile.path
const dataPath = dataDir + '/' + dataFile.path
if (!utils.FileExists(dataPath)) {
utils.WriteFile(JSON.stringify([]), dataPath)