chore: removes local property from payload

This commit is contained in:
Jarrod Flesch
2024-02-23 10:02:59 -05:00
parent 80412a7c2b
commit 6eb4f7e4a1
2 changed files with 2 additions and 4 deletions

View File

@@ -6,12 +6,12 @@ import mongoose from 'mongoose'
import type { MongooseAdapter } from '.'
export const connect: Connect = async function connect(this: MongooseAdapter, payload) {
export const connect: Connect = async function connect(this: MongooseAdapter) {
if (this.url === false) {
return
}
if (!payload.local && typeof this.url !== 'string') {
if (typeof this.url !== 'string') {
throw new Error('Error: missing MongoDB connection URL.')
}