bug fixed
This commit is contained in:
parent
f104fa095f
commit
3b17d4ddfe
|
@ -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,
|
||||||
|
|
Ŝarĝante…
Reference in New Issue