Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/thedevs-network/kutt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpouria <ezzati.upt@gmail.com>2021-09-04 00:26:27 +0300
committerpouria <ezzati.upt@gmail.com>2021-09-04 00:26:27 +0300
commit804ea0cd707632a946745711a6dbd8ed5c8a2e00 (patch)
tree56674bca829eb918e393cc47d18c388b31c090f8
parent46e6f36d6390ab77ca020316d901ceaa588baf5e (diff)
fix: disallow duplicated links when editing links
Resolves #513
-rw-r--r--server/handlers/links.ts1
1 files changed, 0 insertions, 1 deletions
diff --git a/server/handlers/links.ts b/server/handlers/links.ts
index 588a50a..a497cdd 100644
--- a/server/handlers/links.ts
+++ b/server/handlers/links.ts
@@ -132,7 +132,6 @@ export const edit: Handler = async (req, res) => {
address !== link.address &&
query.link.find({
address,
- user_id: req.user.id,
domain_id
}),
validators.bannedDomain(targetDomain),