diff --git a/src/services/grpc/api/set-stripe-connection-data.ts b/src/services/grpc/api/set-stripe-connection-data.ts index 58f959d..30bf13c 100644 --- a/src/services/grpc/api/set-stripe-connection-data.ts +++ b/src/services/grpc/api/set-stripe-connection-data.ts @@ -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; @@ -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; }