Fixed issue with add url

This commit is contained in:
Jyotirmoy Bandyopadhayaya 2022-02-13 11:15:26 +05:30
parent 1e1e7dc74e
commit 0dbdb19dd3
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ module.exports.findUrlById = async (req, res) => {
module.exports.addURL = async (req, res) => {
req.body.alias = nanoid(5);
req.body.minifiedUrl = base_url +
req.body.minifiedUrl = base_url + alias;
Minfy.create(req.body)
.then((data)=>{
res.json(data)