We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0fdd82 commit ee8cb7eCopy full SHA for ee8cb7e
apps/meteor/app/api/server/v1/subscriptions.ts
@@ -55,6 +55,7 @@ const SubscriptionsGetOneSchema = {
55
properties: {
56
roomId: {
57
type: 'string',
58
+ minLength: 1,
59
},
60
61
required: ['roomId'],
@@ -200,10 +201,6 @@ const subscriptionsEndpoints = API.v1.get(
200
201
async function action() {
202
const { roomId } = this.queryParams;
203
- if (!roomId) {
204
- return API.v1.failure("The 'roomId' param is required");
205
- }
206
-
207
return API.v1.success({
208
subscription: await Subscriptions.findOneByRoomIdAndUserId(roomId, this.userId),
209
});
0 commit comments