xfy
60360f6b49
fix(mcp): reveal/revoke 令牌时将字符串 id 解析为 Uuid
reveal_mcp_token / revoke_mcp_token 把前端传来的 String id 直接绑到
$1::uuid,tokio-postgres 解析参数类型为 uuid 后拒绝 String,报
'cannot convert between the Rust type String and the Postgres type uuid'
导致 /api/reveal_mcp_token 500。
参照 assets/delete.rs 的做法,绑定前用 uuid::Uuid::parse_str 转换;
解析失败按令牌不存在处理(reveal 返回 None、revoke 静默无操作),
与函数既有的'避免探测'语义一致。
2026-07-28 14:42:14 +08:00
..
2026-07-27 11:40:02 +08:00
2026-07-23 13:34:27 +08:00
2026-07-23 18:26:19 +08:00
2026-07-23 13:34:27 +08:00
2026-07-24 16:27:02 +08:00
2026-07-23 18:26:19 +08:00
2026-06-29 11:02:58 +08:00
2026-07-15 17:22:06 +08:00
2026-06-25 16:45:09 +08:00
2026-07-24 16:44:47 +08:00
2026-07-23 13:34:27 +08:00
2026-07-23 18:26:19 +08:00
2026-07-28 14:42:14 +08:00
2026-07-23 18:16:22 +08:00
2026-07-23 18:16:22 +08:00
2026-07-28 11:53:32 +08:00
2026-07-23 18:26:19 +08:00
2026-07-23 13:34:27 +08:00
2026-06-29 13:47:40 +08:00
2026-07-15 11:46:56 +08:00
2026-07-27 13:25:26 +08:00