Added "editLink" in the link controller
This commit is contained in:
@ -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}});
|
||||
}
|
Reference in New Issue
Block a user