Skip to content

Commit

Permalink
Merge pull request #136 from AthennaIO/develop
Browse files Browse the repository at this point in the history
chore(con): omit validations key
  • Loading branch information
jlenon7 authored Jan 11, 2024
2 parents b4d585b + 41b6aa2 commit 3b31e31
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@athenna/database",
"version": "4.28.0",
"version": "4.29.0",
"description": "The Athenna database handler for SQL/NoSQL.",
"license": "MIT",
"author": "João Lenon <lenon@athenna.io>",
Expand Down
9 changes: 7 additions & 2 deletions src/factories/ConnectionFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,12 @@ export class ConnectionFactory {
mongoose.set('debug', configs.debug)
}

const options = Json.omit(configs, ['url', 'debug', 'driver'])
const options = Json.omit(configs, [
'url',
'debug',
'validations',
'driver'
])

debug('creating new connection using mongoose. options defined: %o', {
url: configs.url,
Expand Down Expand Up @@ -161,7 +166,7 @@ export class ConnectionFactory {
},
debug: false,
useNullAsDefault: false,
...Json.omit(configs, ['driver'])
...Json.omit(configs, ['driver', 'validations'])
}

debug('creating new connection using Knex. options defined: %o', options)
Expand Down

0 comments on commit 3b31e31

Please sign in to comment.