poeti8 %!s(int64=6) %!d(string=hai) anos
pai
achega
e7dbf7fd2c
Modificáronse 2 ficheiros con 1 adicións e 3 borrados
  1. 1 1
      server/controllers/linkController.ts
  2. 0 2
      server/db/link.ts

+ 1 - 1
server/controllers/linkController.ts

@@ -89,7 +89,7 @@ export const shortener: Handler = async (req, res) => {
         password: !!link.password,
         password: !!link.password,
         reuse: true,
         reuse: true,
         shortLink,
         shortLink,
-        shortUrl: shortLink,
+        shortUrl: shortLink
       };
       };
       return res.json(data);
       return res.json(data);
     }
     }

+ 0 - 2
server/db/link.ts

@@ -208,8 +208,6 @@ export const getLinks = async (
     "domains.id"
     "domains.id"
   );
   );
 
 
-
-
   const links = matchedLinks.map(link => ({
   const links = matchedLinks.map(link => ({
     ...link,
     ...link,
     id: link.address,
     id: link.address,