core: type auth profile timestamps

This commit is contained in:
a.tolmachev
2026-04-12 22:20:19 +00:00
parent e03d4da925
commit edf318ba67
10 changed files with 90 additions and 42 deletions
+2 -2
View File
@@ -3225,14 +3225,14 @@ impl AdminService {
self.validate_auth_profile_secret_ids(workspace_id, &payload.config)
.await?;
let now = now_string()?;
let now = OffsetDateTime::now_utc();
let profile = AuthProfile {
id: AuthProfileId::new(new_prefixed_id("auth")),
workspace_id: workspace_id.clone(),
name: payload.name,
kind: payload.kind,
config: payload.config,
created_at: now.clone(),
created_at: now,
updated_at: now,
};