From 027651c94b27e4d391cdb84c96d5e755083d6842 Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Sat, 31 Dec 2022 21:52:13 +0100 Subject: [PATCH] Added "editLink" in the link controller --- server/controller/link.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/controller/link.js b/server/controller/link.js index 0231892..14f831f 100644 --- a/server/controller/link.js +++ b/server/controller/link.js @@ -49,4 +49,8 @@ module.exports.clickLink = async (accessId, domainName) => { module.exports.createLink = async (configuration) => { return await Link.create(configuration); +} + +module.exports.editLink = async (id, configuration) => { + return await Link.update(configuration, {where: {id}}); } \ No newline at end of file