From baa45a1277ec8c7864815c9fc02a0a09ed95ccc9 Mon Sep 17 00:00:00 2001 From: Kipchirchir Sigei Date: Tue, 26 Mar 2024 14:33:50 +0300 Subject: [PATCH] Fix imports Signed-off-by: Kipchirchir Sigei --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 1c4f7db..3bfd9c9 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,5 @@ const fs = require('fs') const path = require('path') -const queryString = (...args) => import('query-string'); require("dotenv").config() // LOGGER OPTIONS @@ -17,6 +16,7 @@ const axios = require("axios"); async function build() { const fastify = require("fastify")({ logger: logger }); await fastify.register(require('@fastify/express')); + const queryString = require("query-string"); fastify.use((req, res, done) => { reqParams = req.url.split("?")[1]; const parsedReqParams = queryString.parse(reqParams);