finished storage tests
This commit is contained in:
parent
f9ca9f4b87
commit
76af1c92e6
4 changed files with 146 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue