mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-07 15:52:52 +03:00
Merge pull request #917 from tombii/fix/qwen-oauth-token-and-resource-url
fix(oauth): persist providerSpecificData from token refresh in health check
This commit is contained in:
@@ -282,6 +282,13 @@ async function checkConnection(conn) {
|
||||
updateData.tokenExpiresAt = new Date(Date.now() + result.expiresIn * 1000).toISOString();
|
||||
}
|
||||
|
||||
if (result.providerSpecificData) {
|
||||
updateData.providerSpecificData = {
|
||||
...(conn.providerSpecificData || {}),
|
||||
...result.providerSpecificData,
|
||||
};
|
||||
}
|
||||
|
||||
await updateProviderConnection(conn.id, updateData);
|
||||
log(`${LOG_PREFIX} ✓ ${conn.provider}/${conn.name || conn.email || conn.id} refreshed`);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user