We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7dba043 commit 628b68eCopy full SHA for 628b68e
packages/backend/server/routes/publish.post.ts
@@ -240,6 +240,7 @@ export default eventHandler(async (event) => {
240
);
241
242
try {
243
+ // eslint-disable-next-line unicorn/prefer-ternary
244
if (comment === "update" && prevComment!) {
245
await installation.request(
246
"PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}",
@@ -281,8 +282,8 @@ export default eventHandler(async (event) => {
281
282
},
283
284
}
- } catch (e) {
285
- console.error("failed to create/update comment", e, permissions);
+ } catch (error) {
286
+ console.error("failed to create/update comment", error, permissions);
287
288
289
0 commit comments