diff options
| author | syuilo⭐️ <Syuilotan@yahoo.co.jp> | 2017-01-14 06:05:02 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-01-14 06:05:02 +0900 |
| commit | 65a5373acbab0679d232b42398d45f305458e3f4 (patch) | |
| tree | 5cd9dd1225158d75b64c2057c2a05dae07977653 /src/api/api-handler.ts | |
| parent | Update dependencies :rocket: (diff) | |
| download | sharkey-65a5373acbab0679d232b42398d45f305458e3f4.tar.gz sharkey-65a5373acbab0679d232b42398d45f305458e3f4.tar.bz2 sharkey-65a5373acbab0679d232b42398d45f305458e3f4.zip | |
Refactor: Improve readability
Diffstat (limited to 'src/api/api-handler.ts')
| -rw-r--r-- | src/api/api-handler.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/api/api-handler.ts b/src/api/api-handler.ts index c0714ad69a..ccd4e89a04 100644 --- a/src/api/api-handler.ts +++ b/src/api/api-handler.ts @@ -35,6 +35,7 @@ export default async (endpoint: IEndpoint, req: express.Request, res: express.Re try { await limitter(endpoint, ctx); // Rate limit } catch (e) { + // drop request if limit exceeded return reply(429); } } |