Fully move backup integration test to mock server

This commit is contained in:
Fedor Indutny 2024-10-07 12:58:59 -07:00 committed by GitHub
parent 12f28448b2
commit bad065859c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
24 changed files with 508 additions and 232 deletions

View file

@ -1585,11 +1585,13 @@ function saveConversation(db: WritableDB, data: ConversationType): void {
profileLastFetchedAt,
type,
serviceId,
expireTimerVersion,
} = data;
const membersList = getConversationMembersList(data);
db.prepare<Query>(
prepare(
db,
`
INSERT INTO conversations (
id,
@ -1606,7 +1608,8 @@ function saveConversation(db: WritableDB, data: ConversationType): void {
profileName,
profileFamilyName,
profileFullName,
profileLastFetchedAt
profileLastFetchedAt,
expireTimerVersion
) values (
$id,
$json,
@ -1622,7 +1625,8 @@ function saveConversation(db: WritableDB, data: ConversationType): void {
$profileName,
$profileFamilyName,
$profileFullName,
$profileLastFetchedAt
$profileLastFetchedAt,
$expireTimerVersion
);
`
).run({
@ -1643,6 +1647,7 @@ function saveConversation(db: WritableDB, data: ConversationType): void {
profileFamilyName: profileFamilyName || null,
profileFullName: combineNames(profileName, profileFamilyName) || null,
profileLastFetchedAt: profileLastFetchedAt || null,
expireTimerVersion,
});
}
@ -1673,7 +1678,8 @@ function updateConversation(db: WritableDB, data: ConversationType): void {
const membersList = getConversationMembersList(data);
db.prepare(
prepare(
db,
`
UPDATE conversations SET
json = $json,