mirror of
https://github.com/multipleof4/ntfy.git
synced 2026-10-16 08:27:55 +00:00
Dedup without keeping deleted array
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@ class Api {
|
||||
for await (let line of fetchLinesIterator(url)) {
|
||||
messages.push(JSON.parse(line));
|
||||
}
|
||||
return messages.sort((a, b) => { return a.time < b.time ? 1 : -1; }); // Newest first
|
||||
return messages;
|
||||
}
|
||||
|
||||
async publish(baseUrl, topic, message) {
|
||||
|
||||
Reference in New Issue
Block a user