From 5a00247eef462e27ff89fb1f4d8eb85da4dad698 Mon Sep 17 00:00:00 2001 From: Ryan Mwangi Date: Sat, 12 Oct 2024 01:09:05 +0300 Subject: [PATCH] Function to add a new link to a link group --- server.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/server.js b/server.js index db10de0..caa8b3c 100644 --- a/server.js +++ b/server.js @@ -119,6 +119,17 @@ function addLinkGroup(name) { return newLinkGroup; } +// Function to add a new link to a link group +function addLinkToGroup(linkGroup, url, prefix, overrideSummary) { + const newLink = { + url, + prefix, + overrideSummary + }; + linkGroup.links.push(newLink); + return newLink; + } + // Function to update the merged calendar async function updateMergedCalendar(){ try {