Copy shortUrl after adding to db

This commit is contained in:
SinTan1729
2022-11-10 18:11:57 -06:00
parent 68ae439f5b
commit d196c0373f
2 changed files with 17 additions and 14 deletions

View File

@@ -75,7 +75,7 @@ public class UrlRepository {
} catch (SQLException e) {
e.printStackTrace();
}
return "";
return shortUrl;
}
public void addHit(String shortURL) {