This repository has been archived on 2023-05-17. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
auth/lib/db/index.ts
mifi 32bfbd7adc
All checks were successful
continuous-integration/drone/push Build is passing
Finishing touches to publish
2023-05-03 11:38:41 -04:00

6 lines
226 B
TypeScript

import mongoose from 'mongoose';
import { DB_HOST, DB_NAME, DB_PASS, DB_PORT, DB_USER } from '../constants/db';
export const connection = mongoose.connect(`mongodb://${DB_USER}:${DB_PASS}@${DB_HOST}:${DB_PORT}/${DB_NAME}`);