From 2be56cb6eaaaafbe9f1396b3ce07e4ef029edc93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ra=C4=8D=C3=A1k?= Date: Mon, 13 Jan 2025 12:16:26 +0100 Subject: [PATCH] Fix wrong import of getRedirects (#4442) --- adminSiteServer/apiRoutes/redirects.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/adminSiteServer/apiRoutes/redirects.ts b/adminSiteServer/apiRoutes/redirects.ts index 44452fe026..85590c5a85 100644 --- a/adminSiteServer/apiRoutes/redirects.ts +++ b/adminSiteServer/apiRoutes/redirects.ts @@ -1,15 +1,16 @@ import { DbPlainChartSlugRedirect, JsonError } from "@ourworldindata/types" -import { getRedirects } from "../../baker/redirects.js" import { redirectWithSourceExists, getChainedRedirect, getRedirectById, + getRedirects, } from "../../db/model/Redirect.js" import { expectInt } from "../../serverUtils/serverUtil.js" import { triggerStaticBuild } from "./routeUtils.js" import * as db from "../../db/db.js" import { Request } from "../authentication.js" import e from "express" + export async function handleGetSiteRedirects( req: Request, res: e.Response>,