We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 470544d commit 3b449e8Copy full SHA for 3b449e8
apps/webapp/app/presenters/v3/LimitsPresenter.server.ts
@@ -83,18 +83,14 @@ export type LimitsResult = {
83
84
export class LimitsPresenter extends BasePresenter {
85
public async call({
86
- userId,
87
- projectId,
88
organizationId,
89
environmentApiKey,
90
}: {
91
- userId: string;
92
- projectId: string;
93
organizationId: string;
94
environmentApiKey: string;
95
}): Promise<LimitsResult> {
96
// Get organization with all limit-related fields
97
- const organization = await this._replica.organization.findUniqueOrThrow({
+ const organization = await this._replica.organization.findFirstOrThrow({
98
where: { id: organizationId },
99
select: {
100
id: true,
0 commit comments