Skip to content

Commit

Permalink
Remove unused access level fields
Browse files Browse the repository at this point in the history
  • Loading branch information
binaryoverload committed Nov 24, 2024
1 parent 761cc2e commit 17dd5dd
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/services/grpc/api/set-stripe-connection-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import type { Empty } from '@pretendonetwork/grpc/google/protobuf/empty';
import type { AuthenticationCallContextExt } from '@/services/grpc/api/authentication-middleware';

type StripeMongoUpdateScheme = {
access_level?: number;
server_access_level?: string;
'connections.stripe.customer_id'?: string;
'connections.stripe.subscription_id'?: string;
'connections.stripe.price_id'?: string;
Expand All @@ -29,14 +27,6 @@ export async function setStripeConnectionData(request: SetStripeConnectionDataRe

// * These checks allow for null/0 values in order to reset data if needed

if (request.accessLevel !== undefined) {
updateData.access_level = request.accessLevel;
}

if (request.serverAccessLevel !== undefined) {
updateData.server_access_level = request.serverAccessLevel;
}

if (request.subscriptionId !== undefined) {
updateData['connections.stripe.subscription_id'] = request.subscriptionId;
}
Expand Down

0 comments on commit 17dd5dd

Please sign in to comment.