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 d745869cc0
Some checks are pending
continuous-integration/drone/push Build is running
Last bits to make it whole again...
2023-05-05 11:10:13 -04:00

6 lines
242 B
TypeScript

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