Update minify.js

This commit is contained in:
Abhay Verma 2022-03-20 08:57:32 +05:30 committed by GitHub
parent 7ff0c87c48
commit 5b001f98a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -94,6 +94,10 @@ module.exports.addURLAuthed = async (req, res) => {
minifiedUrl,
createdBy,
}
if (!alias) {
res.send('success alias does not exist');
}
Minfy.create(data)
.then((data) => {
res.send(data)