mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-24 10:28:03 +01:00
Update Backbone types: attributes is T - and fix failing type checks
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user