Skip to content

Commit

Permalink
Try to fix a require-await error that wasn't caught in the remote CI …
Browse files Browse the repository at this point in the history
…environment
  • Loading branch information
CaspianA1 committed Jul 1, 2024
1 parent 219990a commit f33760a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion yky-social/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ async function authMiddleware (ctx: MiddlewareContext) {
export class YKY
{
@GetApi('/')

Check failure on line 116 in yky-social/src/app.ts

View workflow job for this annotation

GitHub Actions / build

Static async method 'hello' has no 'await' expression
@RequiredRole([]) // eslint-disable-next-line @typescript-eslint/require-await
@RequiredRole([])
// eslint-disable-next-line @typescript-eslint/require-await
static async hello(_ctx: HandlerContext) {
return {message: "Welcome to YKY (Yakky not Yucky)!"};
}
Expand Down

0 comments on commit f33760a

Please sign in to comment.