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