mirror of
https://github.com/bookorbit/bookorbit.git
synced 2026-11-03 00:11:37 -06:00
fix(koreader): trigger hardcover auto-sync on progress update
KOReader progress updates were updating the database but failing to emit the progress changed event, causing Hardcover auto-sync to be skipped. This change adds the missing event emission to the KOReader service so that external syncs trigger correctly, and patches a query filter issue in the Hardcover repository. Closes #258
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
export type HardcoverSyncDisabledReason = "permission_denied" | "missing_token" | "user_disabled";
|
||||
|
||||
export interface HardcoverSettings {
|
||||
tokenConfigured: boolean;
|
||||
enabled: boolean;
|
||||
effectiveEnabled: boolean;
|
||||
disabledReason: HardcoverSyncDisabledReason | null;
|
||||
autoSyncOnStatusChange: boolean;
|
||||
autoSyncOnProgressUpdate: boolean;
|
||||
autoSyncOnRatingChange: boolean;
|
||||
@@ -8,10 +12,6 @@ export interface HardcoverSettings {
|
||||
lastSyncedAt: string | null;
|
||||
}
|
||||
|
||||
export interface HardcoverAdminSettings {
|
||||
featureEnabled: boolean;
|
||||
}
|
||||
|
||||
export interface UpsertHardcoverSettingsPayload {
|
||||
apiToken?: string;
|
||||
enabled?: boolean;
|
||||
|
||||
Reference in New Issue
Block a user