⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.
TypeScript bookmarkbookmark-managercollaborationnextjsreact-nativeread-it-laterself-hostedtypescript
fix typo
daniel31x134b230e01d3e0
diff --git a/lib/api/controllers/tags/tagId/updeteTagById.ts b/lib/api/controllers/tags/tagId/updateTagById.tssimilarity index 96%rename from lib/api/controllers/tags/tagId/updeteTagById.tsrename to lib/api/controllers/tags/tagId/updateTagById.tsindex 196904ab..7bff0541 100644--- a/lib/api/controllers/tags/tagId/updeteTagById.ts+++ b/lib/api/controllers/tags/tagId/updateTagById.ts@@ -4,7 +4,7 @@ import {UpdateTagSchemaType,} from "@/lib/shared/schemaValidation";-export default async function updeteTagById(+export default async function updateTagById(userId: number,tagId: number,body: UpdateTagSchemaTypediff --git a/pages/api/v1/tags/[id].ts b/pages/api/v1/tags/[id].tsindex 52f86b4f..6aa8194d 100644--- a/pages/api/v1/tags/[id].ts+++ b/pages/api/v1/tags/[id].ts@@ -1,5 +1,5 @@import type { NextApiRequest, NextApiResponse } from "next";-import updeteTagById from "@/lib/api/controllers/tags/tagId/updeteTagById";+import updateTagById from "@/lib/api/controllers/tags/tagId/updateTagById";import verifyUser from "@/lib/api/verifyUser";import deleteTagById from "@/lib/api/controllers/tags/tagId/deleteTagById";@@ -21,7 +21,7 @@ export default async function tags(req: NextApiRequest, res: NextApiResponse) {"This action is disabled because this is a read-only demo of Linkwarden.",});- const tags = await updeteTagById(user.id, tagId, req.body);+ const tags = await updateTagById(user.id, tagId, req.body);return res.status(tags.status).json({ response: tags.response });} else if (req.method === "DELETE") {if (process.env.NEXT_PUBLIC_DEMO === "true")