bug fixed

This commit is contained in:
daniel31x13 2024-09-13 00:37:58 -04:00
parent f104fa095f
commit 3b17d4ddfe

View File

@ -103,7 +103,7 @@ export default async function updateLinkById(
isValidUrl(data.url) isValidUrl(data.url)
) { ) {
await removeFiles(oldLink.id, oldLink.collectionId); await removeFiles(oldLink.id, oldLink.collectionId);
} else } else if (oldLink?.url !== data.url)
return { return {
response: "Invalid URL.", response: "Invalid URL.",
status: 401, status: 401,