mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 18:44:16 +00:00
get DB_AUTH_SOURCE
from obj
This commit is contained in:
parent
e89510abe6
commit
7ca70d013d
@ -1,7 +1,7 @@
|
|||||||
import mongoose from "mongoose"
|
import mongoose from "mongoose"
|
||||||
|
|
||||||
function getConnectionConfig(obj) {
|
function getConnectionConfig(obj) {
|
||||||
const { DB_USER, DB_DRIVER, DB_NAME, DB_PWD, DB_HOSTNAME, DB_PORT } = obj
|
const { DB_USER, DB_DRIVER, DB_NAME, DB_PWD, DB_HOSTNAME, DB_PORT, DB_AUTH_SOURCE } = obj
|
||||||
|
|
||||||
let auth = [
|
let auth = [
|
||||||
DB_DRIVER ?? "mongodb",
|
DB_DRIVER ?? "mongodb",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user