File tree Expand file tree Collapse file tree 5 files changed +20
-4
lines changed Expand file tree Collapse file tree 5 files changed +20
-4
lines changed Original file line number Diff line number Diff line change 1+ # This file specifies files that are *not* uploaded to Google Cloud Platform
2+ # using gcloud. It follows the same syntax as .gitignore, with the addition of
3+ # "#!include" directives (which insert the entries of the given .gitignore-style
4+ # file at that point).
5+ #
6+ # For more information, run:
7+ # $ gcloud topic gcloudignore
8+ #
9+ .gcloudignore
10+ # If you would like to upload your .git directory, .gitignore file or files
11+ # from your .gitignore file, remove the corresponding line
12+ # below:
13+ .git
14+ .gitignore
15+
16+ # Node.js dependencies:
17+ node_modules/
Original file line number Diff line number Diff line change 1+ runtime : nodejs12
Original file line number Diff line number Diff line change 44 "description" : " " ,
55 "main" : " index.js" ,
66 "scripts" : {
7- "start" : " node node_modules/nodemon/bin/nodemon.js src/app.js --exec \" npm run lint && node\" " ,
7+ "start" : " node src/app.js" ,
8+ "watch" : " node node_modules/nodemon/bin/nodemon.js src/app.js --exec \" npm run lint && node\" " ,
89 "lint" : " node_modules/.bin/eslint **/*.js"
910 },
1011 "keywords" : [],
Original file line number Diff line number Diff line change @@ -47,7 +47,6 @@ module.exports = {
4747 } )
4848 res . send ( req . body )
4949 } catch ( err ) {
50- console . log ( err )
5150 res . status ( 500 ) . send ( {
5251 error : 'An error has occured updating an entry'
5352 } )
@@ -56,12 +55,10 @@ module.exports = {
5655 async delete ( req , res ) {
5756 try {
5857 const { entryId} = req . params
59- console . log ( entryId )
6058 const entry = await CodeEntry . findByPk ( entryId )
6159 await entry . destroy ( )
6260 res . send ( entry )
6361 } catch ( err ) {
64- console . log ( err )
6562 res . status ( 500 ) . send ( {
6663 error : 'An error has occured deleting an entry'
6764 } )
You can’t perform that action at this time.
0 commit comments