Skip to content

Commit 3808c8c

Browse files
committed
レビュー反映
index -> ./index msg -> message
1 parent db3b1fd commit 3808c8c

File tree

1 file changed

+2
-2
lines changed
  • docs/3-web-servers/07-database/_samples/forum

1 file changed

+2
-2
lines changed

docs/3-web-servers/07-database/_samples/forum/main.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ app.get("/", async (request, response) => {
1212
const messages = await (
1313
await client.forum.findMany()
1414
).map((data) => data.message);
15-
const template = readFileSync("index.html", "utf-8");
15+
const template = readFileSync("./index.html", "utf-8");
1616
const html = template.replace(
1717
"{messages}",
18-
messages.map((msg) => `<li>${msg}</li>`).join(""),
18+
messages.map((message) => `<li>${message}</li>`).join(""),
1919
);
2020
response.send(html);
2121
});

0 commit comments

Comments
 (0)