feat(userbot,api,frontend): backfill stories and unbreak all-stories list
This commit is contained in:
1 parent
1e143c7573
commit
12cc7d57e3
11 files changed
+326
-102
No files matched your search
@@ -16,6 +16,7 @@
|
||||
|
||||
const KIND_LABELS: Record<string, string> = {
|
||||
backfill: "Бэкфилл",
|
||||
backfill_stories: "Бэкфилл сторис",
|
||||
fetch_media: "Докачка медиа",
|
||||
fetch_avatar: "Аватар",
|
||||
fetch_custom_emoji: "Кастом-эмодзи",
|
||||
@@ -88,12 +89,12 @@
|
||||
}
|
||||
|
||||
function processed(job: JobView): number | null {
|
||||
const value = job.progress.processed;
|
||||
const value = job.progress.processed ?? job.progress.saved;
|
||||
return typeof value === "number" ? value : null;
|
||||
}
|
||||
|
||||
function chatId(job: JobView): number | null {
|
||||
const value = job.params.chat_id;
|
||||
const value = job.params.chat_id ?? job.params.peer_id;
|
||||
return typeof value === "number" ? value : null;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user