getOlderMessagesByConversation: Allow falsey messageId for resiliency
This commit is contained in:
parent
036ce0a6d9
commit
f5a3fdb174
1 changed files with 0 additions and 4 deletions
|
@ -2655,10 +2655,6 @@ async function getOlderMessagesByConversation(
|
|||
messageId,
|
||||
}: { limit?: number; receivedAt?: number; messageId?: string } = {}
|
||||
) {
|
||||
if (receivedAt !== Number.MAX_VALUE && !messageId) {
|
||||
throw new Error('If receivedAt is supplied, messageId should be as well');
|
||||
}
|
||||
|
||||
const db = getInstance();
|
||||
let rows;
|
||||
|
||||
|
|
Loading…
Reference in a new issue