Skip to content

Commit a0c5583

Browse files
committed
fixup! Make expires_in u32 and (on regenerate) not default to the same as last time
1 parent d516b3d commit a0c5583

File tree

1 file changed

+1
-1
lines changed
  • crates/handlers/src/admin/v1/personal_sessions

1 file changed

+1
-1
lines changed

crates/handlers/src/admin/v1/personal_sessions/add.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ pub async fn handler(
140140
&access_token_string,
141141
params
142142
.expires_in
143-
.map(|exp_in| Duration::seconds(i64::try_from(exp_in).unwrap_or(i64::MAX))),
143+
.map(|exp_in| Duration::seconds(i64::from(exp_in))),
144144
)
145145
.await?;
146146

0 commit comments

Comments
 (0)