mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-22 01:15:25 +03:00
fix: add missing notification event type (#2714)
This commit is contained in:
parent
1b189043e4
commit
82d962a54b
1 changed files with 2 additions and 2 deletions
|
@ -34,10 +34,10 @@ export function usePaginator<T, P, U = T>(
|
||||||
return
|
return
|
||||||
|
|
||||||
for await (const entry of stream) {
|
for await (const entry of stream) {
|
||||||
if (entry.event === 'update') {
|
if (entry.event === 'update' || entry.event === 'notification') {
|
||||||
const status = entry.payload
|
const status = entry.payload
|
||||||
|
|
||||||
if ('uri' in entry)
|
if ('uri' in status)
|
||||||
cacheStatus(status, undefined, true)
|
cacheStatus(status, undefined, true)
|
||||||
|
|
||||||
const index = prevItems.value.findIndex((i: any) => i.id === status.id)
|
const index = prevItems.value.findIndex((i: any) => i.id === status.id)
|
||||||
|
|
Loading…
Reference in a new issue