diff --git a/src/backend/dataDirectory.js b/src/backend/dataDirectory.js index e9909c7..46bb942 100644 --- a/src/backend/dataDirectory.js +++ b/src/backend/dataDirectory.js @@ -45,18 +45,18 @@ export class DataDirectory implements CacheProvider, ProjectStorageProvider { const fileName = path.join(projectDirectory, name); await fs.writeFile(fileName, data); }; - writeFile("project.json", stringify(projectToJSON(project))); + await writeFile("project.json", stringify(projectToJSON(project))); if (weightedGraph) { - writeFile( + await writeFile( "weightedGraph.json", stringify(WeightedGraph.toJSON(weightedGraph)) ); } if (cred) { - writeFile("cred.json", stringify(cred.toJSON())); + await writeFile("cred.json", stringify(cred.toJSON())); } if (pluginDeclarations) { - writeFile( + await writeFile( "pluginDeclarations.json", stringify(pluginsToJSON(pluginDeclarations)) );