Revert "use atlas integration env var"

This reverts commit ce01da812d.
This commit is contained in:
Thomas Ruoff
2022-06-21 22:57:23 +02:00
parent 35fd73280a
commit 5691b595ad
2 changed files with 4 additions and 4 deletions

View File

@@ -4,7 +4,7 @@ import EmailProvider from 'next-auth/providers/email'
import GitHubProvider from 'next-auth/providers/github'
import { MongoDBAdapter } from '@next-auth/mongodb-adapter'
import { MONGODB_URI } from '../../../db'
import { MONGO_URI } from '../../../db'
import { MongoClient } from 'mongodb'
let client: MongoClient
@@ -14,7 +14,7 @@ const GITHUB_USERS_GRANTED = ['111471']
async function getMongoClient() {
if (!client) {
client = new MongoClient(MONGODB_URI)
client = new MongoClient(MONGO_URI)
await client.connect()
}