11import { Elysia } from "elysia" ;
22import { logger as firebaseLogger } from "firebase-functions/v2" ;
3- import type { ProfileDataBody } from "../../profiles-api/schemas/profile-schemas.js" ;
43import { ProfileDataBodySchema } from "../../profiles-api/schemas/profile-schemas.js" ;
54import { AuthService } from "../../shared-api/services/auth/index.js" ;
65import { EmailService } from "../../shared-api/services/email/index.js" ;
@@ -254,7 +253,7 @@ export function createAdminMembersPlugin(services?: PartialServices) {
254253 logger,
255254 set,
256255 } ) => {
257- const typedBody = body as ProfileDataBody ;
256+ const typedBody = body ;
258257 return updateProfileLogic ( {
259258 memberId : params . memberId ,
260259 profileData : typedBody ,
@@ -280,7 +279,7 @@ export function createAdminMembersPlugin(services?: PartialServices) {
280279 logger,
281280 set,
282281 } ) => {
283- const typedBody = body as { slug : string } ;
282+ const typedBody = body ;
284283 return linkProfileLogic ( {
285284 memberId : params . memberId ,
286285 slug : typedBody . slug ,
@@ -366,7 +365,7 @@ export function createAdminMembersPlugin(services?: PartialServices) {
366365 logger,
367366 set,
368367 } ) => {
369- const typedBody = body as { newExpirationDate : string } ;
368+ const typedBody = body ;
370369 return extendMembershipLogic ( {
371370 memberId : params . memberId ,
372371 newExpirationDate : typedBody . newExpirationDate ,
@@ -423,7 +422,7 @@ export function createAdminMembersPlugin(services?: PartialServices) {
423422 logger,
424423 set,
425424 } ) => {
426- const typedBody = body as { admin ?: boolean } ;
425+ const typedBody = body ;
427426 return updateClaimsLogic ( {
428427 uid : params . memberId ,
429428 claims : typedBody ,
0 commit comments