MM-61947 Run DND expiry job more often and round expiry time to match interval (#29938)

* MM-61947 Run DND expiry job more often and round expiry time to match interval

* Move comment to make it godoc-compatible

* Change truncateDNDEndTime to work with seconds

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
Harrison Healey
2025-02-25 16:20:00 -05:00
коммит произвёл GitHub
родитель e8ef26196c
Коммит 3902d00d0f
9 изменённых файлов: 55 добавлений и 13 удалений

Просмотреть файл

@@ -100,6 +100,11 @@ export type UserStatus = {
manual?: boolean;
last_activity_at?: number;
active_channel?: string;
/**
* The time when a user's timed DND status will expire. Unlike other timestamps in the app, this is in seconds
* instead of milliseconds.
*/
dnd_end_time?: number;
};