bug fixed
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user