Skip to content

Commit

Permalink
dynamic import
Browse files Browse the repository at this point in the history
  • Loading branch information
overthestream committed Jun 5, 2024
1 parent 6550b14 commit acfc9be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/domain/validation/validation.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
} from '@nestjs/common';
import axios from 'axios';
import crypto from 'crypto';
import queryString from 'query-string';

import { ProductPurchase } from 'src/interfaces/productPurchase';

@Injectable()
Expand Down Expand Up @@ -53,6 +53,7 @@ export class ValidationService {
}

async verify(queryUrl: string, debug: boolean) {
const queryString: any = await import('query-string');
const { signature, key_id } = queryString.parse(queryUrl);

if (
Expand Down

0 comments on commit acfc9be

Please sign in to comment.