fix: stop store pagination if `response` field is missing

This commit is contained in:
fryorcraken.eth 2022-08-24 17:34:37 +10:00
parent cfece62e2a
commit 5ddca918ca
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 1 additions and 0 deletions

View File

@ -217,6 +217,7 @@ export class WakuStore {
if (!reply.response) { if (!reply.response) {
dbg("No message returned from store: `response` field missing"); dbg("No message returned from store: `response` field missing");
return messages;
} }
const response = reply.response as protoV2Beta4.HistoryResponse; const response = reply.response as protoV2Beta4.HistoryResponse;