Skip to content

Commit

Permalink
Arreglo bug GCloud
Browse files Browse the repository at this point in the history
  • Loading branch information
enrgaroli committed Mar 7, 2024
1 parent 1886d40 commit 636fff6
Show file tree
Hide file tree
Showing 7 changed files with 490 additions and 97 deletions.
2 changes: 1 addition & 1 deletion Enrique/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ module.exports = (app, dbMovies) => {
if (cambio.original_title === objeto.original_title) {
// Utilizo inser con upsert = true para que el objeto ya existente se actualice, es decir se haga el PUT
dbMovies.update({ original_title: title}, cambio, { upsert: true });
res.sendStatus(201, "Updated");
res.sendStatus(201, "Created");
} else {
res.sendStatus(400, "Bad Request");
}
Expand Down
Loading

0 comments on commit 636fff6

Please sign in to comment.