Skip to content

Commit 6d8632b

Browse files
samejrmatt-aitken
authored andcommitted
Use findFirstOrThrow instead
1 parent ceba379 commit 6d8632b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

apps/webapp/app/presenters/v3/LimitsPresenter.server.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,18 +83,14 @@ export type LimitsResult = {
8383

8484
export class LimitsPresenter extends BasePresenter {
8585
public async call({
86-
userId,
87-
projectId,
8886
organizationId,
8987
environmentApiKey,
9088
}: {
91-
userId: string;
92-
projectId: string;
9389
organizationId: string;
9490
environmentApiKey: string;
9591
}): Promise<LimitsResult> {
9692
// Get organization with all limit-related fields
97-
const organization = await this._replica.organization.findUniqueOrThrow({
93+
const organization = await this._replica.organization.findFirstOrThrow({
9894
where: { id: organizationId },
9995
select: {
10096
id: true,

0 commit comments

Comments
 (0)