fix: bug while creating a new profile

This commit is contained in:
2026-07-02 11:41:53 +02:00
parent 93c8f6b9d3
commit 6ec31b61ce
3 changed files with 12 additions and 3 deletions
+4 -2
View File
@@ -133,8 +133,10 @@ const emptyProfile = (): Profile => ({
is_active: false,
sort_order: 0,
db: { backend: '', host: '', port: 3306, user: '', password: '', database: '' },
created_at: '' as any,
updated_at: '' as any,
// Server-managed timestamps — send null (NOT "") so Go's time.Time unmarshal
// leaves the zero value instead of failing to parse an empty RFC3339 string.
created_at: null as any,
updated_at: null as any,
});
interface Props {