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 resource = {
id: `F_${topicId}_${rv}`,
filename: `${resource.id}.md`,
version: resourceVersion,
};
const filename = `${resource.id}.md`;
const filePath = path.join(STATIC_DIR, filename);
const filePath = path.join(STATIC_DIR, resource.filename);
await fs.writeFile(filePath, content, "utf8");