mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-07 06:30:53 +03:00
finished storage tests
This commit is contained in:
@@ -101,7 +101,7 @@ app.post('/delete/:id', (req, res) => {
|
||||
|
||||
storage
|
||||
.delete(id, delete_token)
|
||||
.then(err => {
|
||||
.then(() => {
|
||||
if (!err) {
|
||||
log.info('Deleted:', id);
|
||||
res.sendStatus(200);
|
||||
@@ -112,7 +112,7 @@ app.post('/delete/:id', (req, res) => {
|
||||
|
||||
app.post('/upload/:id', (req, res, next) => {
|
||||
if (!validateID(req.params.id)) {
|
||||
res.send(404);
|
||||
res.sendStatus(404);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user