Skip to content

Commit

Permalink
fix: 配置中bool类型判断错误BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
TBXark committed Sep 19, 2024
1 parent 7235027 commit 205bdd7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 29 deletions.
2 changes: 1 addition & 1 deletion dist/buildinfo.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 5 additions & 25 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/timestamp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "chatgpt-telegram-workers",
"type": "module",
"version": "1.9.3",
"version": "1.9.4",
"description": "The easiest and quickest way to deploy your own ChatGPT Telegram bot is to use a single file and simply copy and paste it. There is no need for any dependencies, local development environment configuration, domain names, or servers.",
"author": "tbxark <[email protected]>",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/config/merger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class ConfigMerger {
continue;
}
// 默认为字符串类型
const t = target[key] ? typeof target[key] : 'string';
const t = (target[key] !== null && target[key] !== undefined) ? typeof target[key] : 'string';
// 不是字符串直接赋值
if (typeof source[key] !== 'string') {
target[key] = source[key];
Expand Down

0 comments on commit 205bdd7

Please sign in to comment.