Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
5ad383bc
authored
Apr 02, 2025
by
a.e
Committed by
GitHub
Apr 02, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: add connection timeout to database settings (#4434)
parent
c85b7193
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
packages/plugins/src/databaseConnection/index.ts
+4
-2
projects/app/src/pageComponents/app/list/List.tsx
+2
-4
No files found.
packages/plugins/src/databaseConnection/index.ts
View file @
5ad383bc
...
@@ -34,7 +34,8 @@ const main = async ({
...
@@ -34,7 +34,8 @@ const main = async ({
port
:
parseInt
(
port
,
10
),
port
:
parseInt
(
port
,
10
),
database
:
databaseName
,
database
:
databaseName
,
user
,
user
,
password
password
,
connectionTimeoutMillis
:
30000
});
});
await
client
.
connect
();
await
client
.
connect
();
...
@@ -47,7 +48,8 @@ const main = async ({
...
@@ -47,7 +48,8 @@ const main = async ({
port
:
parseInt
(
port
,
10
),
port
:
parseInt
(
port
,
10
),
database
:
databaseName
,
database
:
databaseName
,
user
,
user
,
password
password
,
connectTimeout
:
30000
});
});
const
[
rows
]
=
await
connection
.
execute
(
sql
);
const
[
rows
]
=
await
connection
.
execute
(
sql
);
...
...
projects/app/src/pageComponents/app/list/List.tsx
View file @
5ad383bc
...
@@ -50,10 +50,8 @@ const ListItem = () => {
...
@@ -50,10 +50,8 @@ const ListItem = () => {
content
:
t
(
'app:move.hint'
)
content
:
t
(
'app:move.hint'
)
});
});
const
{
myApps
,
loadMyApps
,
onUpdateApp
,
setMoveAppId
,
folderDetail
,
setSearchKey
}
=
useContextSelector
(
const
{
myApps
,
loadMyApps
,
onUpdateApp
,
setMoveAppId
,
folderDetail
,
setSearchKey
}
=
AppListContext
,
useContextSelector
(
AppListContext
,
(
v
)
=>
v
);
(
v
)
=>
v
);
const
[
editedApp
,
setEditedApp
]
=
useState
<
EditResourceInfoFormType
>
();
const
[
editedApp
,
setEditedApp
]
=
useState
<
EditResourceInfoFormType
>
();
const
[
editHttpPlugin
,
setEditHttpPlugin
]
=
useState
<
EditHttpPluginProps
>
();
const
[
editHttpPlugin
,
setEditHttpPlugin
]
=
useState
<
EditHttpPluginProps
>
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment