diff --git a/web/src/admin/admin-overview/charts/SyncStatusChart.ts b/web/src/admin/admin-overview/charts/SyncStatusChart.ts index d9a3cce6c..147e056ad 100644 --- a/web/src/admin/admin-overview/charts/SyncStatusChart.ts +++ b/web/src/admin/admin-overview/charts/SyncStatusChart.ts @@ -6,7 +6,7 @@ import { ChartData, ChartOptions } from "chart.js"; import { msg } from "@lit/localize"; import { customElement } from "lit/decorators.js"; -import { ProvidersApi, SourcesApi, TaskStatusEnum } from "@goauthentik/api"; +import { ProvidersApi, SourcesApi, SystemTaskStatusEnum } from "@goauthentik/api"; export interface SyncStatus { healthy: number; @@ -49,12 +49,12 @@ export class LDAPSyncStatusChart extends AKChart { }); health.tasks.forEach((task) => { - if (task.status !== TaskStatusEnum.Successful) { + if (task.status !== SystemTaskStatusEnum.Successful) { metrics.failed += 1; } const now = new Date().getTime(); const maxDelta = 3600000; // 1 hour - if (!health || now - task.taskFinishTimestamp.getTime() > maxDelta) { + if (!health || now - task.finishTimestamp.getTime() > maxDelta) { metrics.unsynced += 1; } else { metrics.healthy += 1; @@ -94,12 +94,12 @@ export class LDAPSyncStatusChart extends AKChart { id: element.pk, }); health.tasks.forEach((task) => { - if (task.status !== TaskStatusEnum.Successful) { + if (task.status !== SystemTaskStatusEnum.Successful) { sourceKey = "failed"; } const now = new Date().getTime(); const maxDelta = 3600000; // 1 hour - if (!health || now - task.taskFinishTimestamp.getTime() > maxDelta) { + if (!health || now - task.finishTimestamp.getTime() > maxDelta) { sourceKey = "unsynced"; } }); diff --git a/web/src/admin/providers/scim/SCIMProviderViewPage.ts b/web/src/admin/providers/scim/SCIMProviderViewPage.ts index d745ed55e..a9faa772f 100644 --- a/web/src/admin/providers/scim/SCIMProviderViewPage.ts +++ b/web/src/admin/providers/scim/SCIMProviderViewPage.ts @@ -32,7 +32,7 @@ import { RbacPermissionsAssignedByUsersListModelEnum, SCIMProvider, SCIMSyncStatus, - TaskStatusEnum, + SystemTaskStatusEnum, } from "@goauthentik/api"; @customElement("ak-provider-scim-view") @@ -143,15 +143,15 @@ export class SCIMProviderViewPage extends AKElement {