Skip to content

Commit

Permalink
fix: Allow the comId parameter for listStudios to be nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
KallynGowdy committed Apr 1, 2024
1 parent 63b429a commit 5261174
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/aux-records/RecordsServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2317,7 +2317,7 @@ export class RecordsServer {
.http('GET', '/api/v2/studios/list')
.inputs(
z.object({
comId: z.string().nonempty().optional(),
comId: z.string().nonempty().nullable().optional(),
})
)
.handler(async ({ comId }, context) => {
Expand Down
2 changes: 1 addition & 1 deletion src/aux-server/aux-web/aux-auth/site/AuthApp/AuthApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export default class AuthApp extends Vue {
try {
const comId = authManager.getComIdFromUrl();
const result = await authManager.client.listStudios({
comId,
comId: comId ?? undefined,
});

if (result.success === false) {
Expand Down

0 comments on commit 5261174

Please sign in to comment.