Unified · Split
| @@ -126,7 +126,7 @@ export const normalizeSourceForCreate = (input: { · 125 unmodified lines | |||
| 126 | status: input.source.status, | 126 | status: input.source.status, |
| 127 | enabled: input.source.enabled, | 127 | enabled: input.source.enabled, |
| 128 | namespace: trimOrNull(input.source.namespace), | 128 | namespace: trimOrNull(input.source.namespace), |
| 129 | ...(input.source.iconUrl?.trim() ? { iconUrl: input.source.iconUrl.trim() } : {}), | 129 | iconUrl: input.source.iconUrl, |
| 130 | createdAt: input.now, | 130 | createdAt: input.now, |
| 131 | updatedAt: input.now, | 131 | updatedAt: input.now, |
| 132 | }); | 132 | }); |
| @@ -139,7 +139,6 @@ export const normalizeSourceForSave = (input: { · 6 unmodified lines | |||
| 139 | ...input.source, | 139 | ...input.source, |
| 140 | name: input.source.name.trim(), | 140 | name: input.source.name.trim(), |
| 141 | namespace: trimOrNull(input.source.namespace), | 141 | namespace: trimOrNull(input.source.namespace), |
| 142 | ...(input.source.iconUrl?.trim() ? { iconUrl: input.source.iconUrl.trim() } : {}), | ||
| 143 | updatedAt: input.now, | 142 | updatedAt: input.now, |
| 144 | }); | 143 | }); |
| 145 | 144 | ||