fix error schema for FileServerService rate limit

This commit is contained in:
Hazelnoot 2025-05-19 17:59:49 -04:00
parent bede498798
commit 34a6816636

View file

@ -675,9 +675,11 @@ export class FileServerService {
if (info.blocked) { if (info.blocked) {
reply.code(429); reply.code(429);
reply.send({ reply.send({
message: 'Rate limit exceeded. Please try again later.', error: {
code: 'RATE_LIMIT_EXCEEDED', message: 'Rate limit exceeded. Please try again later.',
id: 'd5826d14-3982-4d2e-8011-b9e9f02499ef', code: 'RATE_LIMIT_EXCEEDED',
id: 'd5826d14-3982-4d2e-8011-b9e9f02499ef',
},
}); });
return false; return false;