node-fetch

This commit is contained in:
Kar
2024-10-14 10:17:11 +05:30
parent da33f2ed43
commit 41c2ceb675
5 changed files with 3 additions and 94 deletions

View File

@@ -1,7 +1,7 @@
const aiFollowupQuestion = async (req, res) => {
const { MongoClient } = require('mongodb');
// const fetch = require('node-fetch');
const fetch = require('node-fetch');
const { v4: uuidv4 } = require('uuid');
const url = process.env.MONGODB_URL;
const dbName = process.env.MONGO_DB_NAME;