Skip to content

Commit 6c14af8

Browse files
author
Kerwin
committed
chore: chatgpt接口升级5.2.4
1 parent 6790df2 commit 6c14af8

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

service/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
},
2626
"dependencies": {
2727
"axios": "^1.3.4",
28-
"chatgpt": "^5.1.2",
28+
"chatgpt": "^5.2.4",
2929
"dotenv": "^16.0.3",
3030
"esno": "^0.16.3",
3131
"express": "^4.18.2",

service/pnpm-lock.yaml

Lines changed: 9 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

service/src/storage/mongo.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,5 +203,7 @@ export async function updateConfig(config: Config): Promise<Config> {
203203
const result = await configCol.replaceOne({ _id: config._id }, config, { upsert: true })
204204
if (result.modifiedCount > 0 || result.upsertedCount > 0)
205205
return config
206+
if (result.matchedCount > 0 && result.modifiedCount <= 0 && result.upsertedCount <= 0)
207+
return config
206208
return null
207209
}

0 commit comments

Comments
 (0)