refacto(db): remove old setconfig
This commit is contained in:
@@ -6,7 +6,6 @@ import { useRouter } from "next/navigation";
|
|||||||
import { storageService } from "@/lib/services/storage.service";
|
import { storageService } from "@/lib/services/storage.service";
|
||||||
import { AuthError } from "@/types/auth";
|
import { AuthError } from "@/types/auth";
|
||||||
import { useToast } from "@/components/ui/use-toast";
|
import { useToast } from "@/components/ui/use-toast";
|
||||||
import { komgaConfigService } from "@/lib/services/komga-config.service";
|
|
||||||
|
|
||||||
interface ErrorMessage {
|
interface ErrorMessage {
|
||||||
message: string;
|
message: string;
|
||||||
@@ -147,8 +146,6 @@ export function ClientSettings({ initialConfig }: ClientSettingsProps) {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
komgaConfigService.setConfig(komgaConfig, true);
|
|
||||||
|
|
||||||
fetch("/api/komga/config", {
|
fetch("/api/komga/config", {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: {
|
headers: {
|
||||||
|
|||||||
Reference in New Issue
Block a user