fix: mongoose strictquery to false (#3906)
Some checks are pending
Deploy doc image by kubeconfig / build-fastgpt-docs-images (push) Waiting to run
Deploy doc image by kubeconfig / update-docs-image (push) Blocked by required conditions
Deploy doc image to vercel / deploy-production (push) Waiting to run
Build FastGPT images in Personal warehouse / build-fastgpt-images (push) Waiting to run

This commit is contained in:
Finley Ge 2025-02-27 11:25:29 +08:00 committed by GitHub
parent c3d3b30d7e
commit 9f57ad0017
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,7 +16,7 @@ export async function connectMongo(): Promise<Mongoose> {
console.log('mongo start connect');
try {
connectionMongo.set('strictQuery', true);
connectionMongo.set('strictQuery', false);
connectionMongo.connection.on('error', async (error) => {
console.log('mongo error', error);