Skip to content

Commit 07aca7b

Browse files
committed
refactor(index): name hook function
easier debugging than an anon arrow function
1 parent 67c7c78 commit 07aca7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ async function fastifyJsonToXml(server, options) {
3232
replaceInvalidChars: options?.replaceInvalidChars === true,
3333
};
3434

35-
server.addHook("onSend", async (req, res, payload) => {
35+
server.addHook("onSend", async function jsonToXml(req, res, payload) {
3636
if (
3737
typeof payload === "string" &&
3838
res

0 commit comments

Comments
 (0)