File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11import { Request , Response , NextFunction } from 'express' ;
2- import { PromptPurchaseCompleteRequestDTO } from '../dtos/purchase.complete.dto' ;
2+ import { PurchaseCompleteRequestDTO } from '../dtos/purchase.complete.dto' ;
33import { PurchaseCompleteService } from '../services/purchase.complete.service' ;
44
55export const PurchaseCompleteController = {
66 async completePurchase ( req : Request , res : Response , next : NextFunction ) {
77 try {
88 const userId = ( req . user as any ) . user_id ;
9- const dto = req . body as Partial < PromptPurchaseCompleteRequestDTO > ;
9+ const dto = req . body as Partial < PurchaseCompleteRequestDTO > ;
1010
1111 if ( ! dto || typeof dto . paymentId !== 'string' ) {
1212 return res . status ( 400 ) . json ( {
@@ -16,7 +16,7 @@ export const PurchaseCompleteController = {
1616 } ) ;
1717 }
1818
19- const result = await PurchaseCompleteService . completePurchase ( userId , dto as PromptPurchaseCompleteRequestDTO ) ;
19+ const result = await PurchaseCompleteService . completePurchase ( userId , dto as PurchaseCompleteRequestDTO ) ;
2020 res . status ( result . statusCode ) . json ( result ) ;
2121 } catch ( err ) {
2222 next ( err ) ;
You can’t perform that action at this time.
0 commit comments