1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-08-27 23:31:41 +02:00

[PM-6426] Changing the name of the state definition for the TaskScheduler

This commit is contained in:
Cesar Gonzalez 2024-04-01 16:07:19 -05:00
parent 638554e164
commit 7e6d76e50c
No known key found for this signature in database
GPG Key ID: 3381A5457F8CCECF
2 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ import { TaskIdentifier } from "@bitwarden/common/platform/abstractions/task-sch
import { ScheduledTaskName } from "@bitwarden/common/platform/enums/scheduled-task-name.enum";
import { TaskSchedulerService } from "@bitwarden/common/platform/services/task-scheduler.service";
import {
SCHEDULED_TASKS_DISK,
TASK_SCHEDULER_DISK,
GlobalState,
KeyDefinition,
StateProvider,
@ -18,7 +18,7 @@ import {
BrowserTaskSchedulerService as BrowserTaskSchedulerServiceInterface,
} from "./abstractions/browser-task-scheduler.service";
const ACTIVE_ALARMS = new KeyDefinition(SCHEDULED_TASKS_DISK, "activeAlarms", {
const ACTIVE_ALARMS = new KeyDefinition(TASK_SCHEDULER_DISK, "activeAlarms", {
deserializer: (value: ActiveAlarm[]) => value ?? [],
});

View File

@ -90,7 +90,7 @@ export const ENVIRONMENT_DISK = new StateDefinition("environment", "disk");
export const ENVIRONMENT_MEMORY = new StateDefinition("environment", "memory");
export const THEMING_DISK = new StateDefinition("theming", "disk", { web: "disk-local" });
export const TRANSLATION_DISK = new StateDefinition("translation", "disk");
export const SCHEDULED_TASKS_DISK = new StateDefinition("scheduledTasks", "disk");
export const TASK_SCHEDULER_DISK = new StateDefinition("taskScheduler", "disk");
// Secrets Manager