mirror of https://github.com/zulip/zulip.git
user_status: Remove useless number coercion for object keys.
There’s no such thing as a numeric object key in JavaScript. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
9989365fe8
commit
05d8a65f75
|
@ -38,7 +38,7 @@ const user_status_schema = z.union([
|
|||
}),
|
||||
]);
|
||||
|
||||
const user_status_param_schema = z.record(z.coerce.number(), user_status_schema);
|
||||
const user_status_param_schema = z.record(z.string(), user_status_schema);
|
||||
|
||||
const user_info = new Map<number, string>();
|
||||
const user_status_emoji_info = new Map<number, UserStatusEmojiInfo>();
|
||||
|
|
Loading…
Reference in New Issue