Skip to content

Commit 64f803b

Browse files
author
Marcos Defendi
committed
fix: moved typed param to a single place
1 parent b933f2d commit 64f803b

File tree

4 files changed

+1
-6
lines changed

4 files changed

+1
-6
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ export class APIClass<
619619
path: TPathPattern;
620620
} & Omit<TOptions, 'response'>)
621621
> {
622-
this.addRoute([subpath], { ...options }, { [method.toLowerCase()]: { action } } as any);
622+
this.addRoute([subpath], { ...options, typed: true }, { [method.toLowerCase()]: { action } } as any);
623623
this.registerTypedRoutes(method, subpath, options);
624624
return this;
625625
}

apps/meteor/app/api/server/v1/custom-sounds.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ API.v1.get(
6060
},
6161
query: isCustomSoundsListProps,
6262
authRequired: true,
63-
typed: true,
6463
},
6564
async function action() {
6665
const { offset, count } = await getPaginationItems(this.queryParams as Record<string, string | number | null | undefined>);

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ API.v1
3232
required: ['results', 'success'],
3333
}),
3434
},
35-
typed: true,
3635
},
3736
async function () {
3837
const { matrixIds } = this.queryParams;
@@ -75,7 +74,6 @@ API.v1
7574
required: ['externalReachability', 'appservice', 'success'],
7675
}),
7776
},
78-
typed: true,
7977
},
8078
async () => {
8179
const service = License.hasValidLicense() ? FederationEE : Federation;

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ API.v1
8585
required: ['success', 'error'],
8686
}),
8787
},
88-
typed: true,
8988
},
9089

9190
async function () {
@@ -197,7 +196,6 @@ API.v1
197196
required: ['success', 'error'],
198197
}),
199198
},
200-
typed: true,
201199
},
202200

203201
async function () {

0 commit comments

Comments
 (0)