Skip to content

Commit

Permalink
Fix imports
Browse files Browse the repository at this point in the history
Signed-off-by: Kipchirchir Sigei <[email protected]>
  • Loading branch information
KipSigei committed Mar 26, 2024
1 parent c3d0955 commit baa45a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const fs = require('fs')
const path = require('path')
const queryString = (...args) => import('query-string');
require("dotenv").config()

// LOGGER OPTIONS
Expand All @@ -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);
Expand Down

0 comments on commit baa45a1

Please sign in to comment.