Added "editLink" in the link controller

This commit is contained in:
2022-12-31 21:52:13 +01:00
parent 1bbac8bb6b
commit 027651c94b

View File

@ -50,3 +50,7 @@ module.exports.clickLink = async (accessId, domainName) => {
module.exports.createLink = async (configuration) => { module.exports.createLink = async (configuration) => {
return await Link.create(configuration); return await Link.create(configuration);
} }
module.exports.editLink = async (id, configuration) => {
return await Link.update(configuration, {where: {id}});
}