mirror of
https://github.com/bitwarden/jslib
synced 2026-01-05 18:13:14 +00:00
Merge branch 'master' into Feature/EndUserVaultRefresh
This commit is contained in:
@@ -1029,7 +1029,7 @@ export class CipherService implements CipherServiceAbstraction {
|
||||
ciphers[c.id].revisionDate = c.revisionDate;
|
||||
};
|
||||
|
||||
if (cipher.constructor.name === "Array") {
|
||||
if (cipher.constructor.name === Array.name) {
|
||||
(cipher as { id: string; revisionDate: string }[]).forEach(clearDeletedDate);
|
||||
} else {
|
||||
clearDeletedDate(cipher as { id: string; revisionDate: string });
|
||||
|
||||
@@ -13,6 +13,7 @@ import { SendService } from "../abstractions/send.service";
|
||||
import { SettingsService } from "../abstractions/settings.service";
|
||||
import { StateService } from "../abstractions/state.service";
|
||||
import { SyncService as SyncServiceAbstraction } from "../abstractions/sync.service";
|
||||
import { sequentialize } from "../misc/sequentialize";
|
||||
import { CipherData } from "../models/data/cipherData";
|
||||
import { CollectionData } from "../models/data/collectionData";
|
||||
import { FolderData } from "../models/data/folderData";
|
||||
@@ -71,6 +72,7 @@ export class SyncService implements SyncServiceAbstraction {
|
||||
await this.stateService.setLastSync(date.toJSON(), { userId: userId });
|
||||
}
|
||||
|
||||
@sequentialize(() => "fullSync")
|
||||
async fullSync(forceSync: boolean, allowThrowOnError = false): Promise<boolean> {
|
||||
this.syncStarted();
|
||||
const isAuthenticated = await this.stateService.getIsAuthenticated();
|
||||
|
||||
Reference in New Issue
Block a user