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:
Anders Kaseorg 2023-10-30 11:30:59 -07:00 committed by Tim Abbott
parent 9989365fe8
commit 05d8a65f75
1 changed files with 1 additions and 1 deletions

View File

@ -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>();