From ab3613af481bed8dd0c6eec08de896c1d7250dc1 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Tue, 15 Sep 2020 12:20:27 -0700 Subject: [PATCH] fix: Path to onboarding markdown files (changed with updated build process) --- server/models/Team.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/server/models/Team.js b/server/models/Team.js index ca269aefc..695935d80 100644 --- a/server/models/Team.js +++ b/server/models/Team.js @@ -148,7 +148,15 @@ Team.prototype.provisionFirstCollection = async function (userId) { ]; for (const title of onboardingDocs) { const text = await readFile( - path.join(__dirname, "..", "onboarding", `${title}.md`), + path.join( + __dirname, + "..", + "..", + "..", + "server", + "onboarding", + `${title}.md` + ), "utf8" ); const document = await Document.create({