perf: read the address cache for schedule writes too

This commit is contained in:
Ruben Fiszel
2026-08-04 09:54:43 +00:00
parent 9357459fa7
commit 2e33626453
+2 -5
View File
@@ -300,10 +300,7 @@ async fn create_schedule(
&w_id,
)
.await?;
// Uncached: unlike a read, this value is persisted, so a stale cached address would stay
// wrong in the row instead of for the minute the cache lives — and `change_user_email`
// sweeps the column, which a cached write would immediately undo.
let legacy_email = windmill_common::users::get_email_from_permissioned_as_uncached(
let legacy_email = windmill_common::users::get_email_from_permissioned_as(
&resolved_permissioned_as,
&w_id,
&db,
@@ -506,7 +503,7 @@ async fn edit_schedule(
&authed,
);
let legacy_email = windmill_common::users::get_email_from_permissioned_as_uncached(
let legacy_email = windmill_common::users::get_email_from_permissioned_as(
&resolved_permissioned_as,
&w_id,
&db,