fix: test connection passing auth instead of password
- testConnection now maps auth -> password for Redis service - fixes test connection failing even with correct credentials
This commit is contained in:
@@ -128,7 +128,13 @@ export const useConnectionStore = defineStore('connection', () => {
|
||||
}): Promise<{ success: boolean; error?: string }> {
|
||||
const testId = `test_${Date.now()}`
|
||||
try {
|
||||
const result = await window.electronAPI.redis.connect(testId, opts)
|
||||
const result = await window.electronAPI.redis.connect(testId, {
|
||||
host: opts.host,
|
||||
port: opts.port,
|
||||
password: opts.auth || undefined,
|
||||
username: opts.username || undefined,
|
||||
tls: opts.tls,
|
||||
})
|
||||
if (result.success) {
|
||||
await window.electronAPI.redis.disconnect(testId)
|
||||
return { success: true }
|
||||
|
||||
Reference in New Issue
Block a user