Update Backbone types: attributes is T - and fix failing type checks

This commit is contained in:
Scott Nonnenberg 2023-01-05 13:58:13 -08:00 committed by GitHub
parent c65a7d0a14
commit b8234765bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 57 additions and 24 deletions

View file

@ -2131,9 +2131,9 @@ async function getMessageBySender({
sourceDevice,
sent_at,
}: {
source: string;
sourceUuid: UUIDStringType;
sourceDevice: number;
source?: string;
sourceUuid?: UUIDStringType;
sourceDevice?: number;
sent_at: number;
}): Promise<MessageType | undefined> {
const db = getInstance();
@ -2147,9 +2147,9 @@ async function getMessageBySender({
LIMIT 2;
`
).all({
source,
sourceUuid,
sourceDevice,
source: source || null,
sourceUuid: sourceUuid || null,
sourceDevice: sourceDevice || null,
sent_at,
});