feat: Test the database connection of the ExeSQL operator #1739 (#2036)

### What problem does this PR solve?

feat: Test the database connection of the ExeSQL operator #1739
### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-08-21 15:33:44 +08:00
committed by GitHub
parent 85247e6837
commit 6c26872799
5 changed files with 42 additions and 2 deletions

View File

@ -10,6 +10,7 @@ const {
removeCanvas,
runCanvas,
listTemplates,
testDbConnect,
} = api;
const methods = {
@ -41,6 +42,10 @@ const methods = {
url: listTemplates,
method: 'get',
},
testDbConnect: {
url: testDbConnect,
method: 'post',
},
} as const;
const chatService = registerServer<keyof typeof methods>(methods, request);