This commit is contained in:
Tomas Mirchev 2025-06-26 23:25:56 +00:00
parent bc3029d84f
commit 1ea575e175

View File

@ -76,11 +76,11 @@ app.post(
const rv = `RV${resourceVersion}`; const rv = `RV${resourceVersion}`;
const resource = { const resource = {
id: `F_${topicId}_${rv}`, id: `F_${topicId}_${rv}`,
filename: `${resource.id}.md`,
version: resourceVersion, version: resourceVersion,
}; };
const filename = `${resource.id}.md`; const filePath = path.join(STATIC_DIR, resource.filename);
const filePath = path.join(STATIC_DIR, filename);
await fs.writeFile(filePath, content, "utf8"); await fs.writeFile(filePath, content, "utf8");