Skip to content

Commit 940e9d5

Browse files
committed
fix: Removed errorTypes
1 parent 53f61e5 commit 940e9d5

3 files changed

Lines changed: 4 additions & 6 deletions

File tree

apps/meteor/app/api/server/v1/calendar.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/*
21
import { Calendar } from '@rocket.chat/core-services';
32
import type { ICalendarEvent } from '@rocket.chat/core-typings';
43
import {
@@ -223,4 +222,3 @@ API.v1.post(
223222
return API.v1.success();
224223
},
225224
);
226-
*/

apps/meteor/tests/end-to-end/api/chat.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4568,7 +4568,7 @@ describe('Threads', () => {
45684568
.expect(400)
45694569
.expect((res) => {
45704570
expect(res.body).to.have.property('success', false);
4571-
expect(res.body).to.have.property('errorType', 'invalid-params');
4571+
expect(res.body).to.have.property('errorType', 'error-invalid-params');
45724572
})
45734573
.end(done);
45744574
});
@@ -4586,7 +4586,7 @@ describe('Threads', () => {
45864586
.expect(400)
45874587
.expect((res) => {
45884588
expect(res.body).to.have.property('success', false);
4589-
expect(res.body).to.have.property('errorType', 'invalid-params');
4589+
expect(res.body).to.have.property('errorType', 'error-invalid-params');
45904590
})
45914591
.end(done);
45924592
});
@@ -4605,7 +4605,7 @@ describe('Threads', () => {
46054605
.expect(400)
46064606
.expect((res) => {
46074607
expect(res.body).to.have.property('success', false);
4608-
expect(res.body).to.have.property('errorType', 'invalid-params');
4608+
expect(res.body).to.have.property('errorType', 'error-invalid-params');
46094609
})
46104610
.end(done);
46114611
});

packages/http-router/src/Router.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ export class Router<
220220
return c.json(
221221
{
222222
success: false,
223-
errorType: 'invalid-params',
223+
errorType: 'error-invalid-params',
224224
error: validatorFn.errors?.map((error: any) => error.message).join('\n '),
225225
},
226226
400,

0 commit comments

Comments
 (0)