mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-14 20:03:52 +00:00
refactor: expose api for loading demo project
This commit is contained in:
committed by
Carlos Valente
parent
a518dc4882
commit
7bf90d669a
@@ -59,10 +59,9 @@ export async function getCurrentProject() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Private function loads a demo project
|
||||
* to be composed in the loading functions
|
||||
* Loads the demo project
|
||||
*/
|
||||
async function loadDemoProject(): Promise<string> {
|
||||
export async function loadDemoProject(): Promise<string> {
|
||||
const pathToNewFile = generateUniqueFileName(publicDir.projectsDir, config.demoProject);
|
||||
await initPersistence(getPathToProject(pathToNewFile), demoDb);
|
||||
const newName = getFileNameFromPath(pathToNewFile);
|
||||
|
||||
Reference in New Issue
Block a user