- Extracted and assigned `proxy_url` from metadata to `Auth.ProxyURL`.
Unified · Split
| @@ -951,6 +951,11 @@ func (w *Watcher) SnapshotCoreAuths() []*coreauth.Auth { · 950 unmodified lines | |||
| 951 | id = rel | 951 | id = rel |
| 952 | } | 952 | } |
| 953 | 953 | ||
| 954 | proxyURL := "" | ||
| 955 | if p, ok := metadata["proxy_url"].(string); ok { | ||
| 956 | proxyURL = p | ||
| 957 | } | ||
| 958 | |||
| 954 | a := &coreauth.Auth{ | 959 | a := &coreauth.Auth{ |
| 955 | ID: id, | 960 | ID: id, |
| 956 | Provider: provider, | 961 | Provider: provider, |
| @@ -960,6 +965,7 @@ func (w *Watcher) SnapshotCoreAuths() []*coreauth.Auth { · 3 unmodified lines | |||
| 960 | "source": full, | 965 | "source": full, |
| 961 | "path": full, | 966 | "path": full, |
| 962 | }, | 967 | }, |
| 968 | ProxyURL: proxyURL, | ||
| 963 | Metadata: metadata, | 969 | Metadata: metadata, |
| 964 | CreatedAt: now, | 970 | CreatedAt: now, |
| 965 | UpdatedAt: now, | 971 | UpdatedAt: now, |