update
This commit is contained in:
parent
bc3029d84f
commit
1ea575e175
@ -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");
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user