Skip to content

Commit cb867bb

Browse files
committed
cleanuup
1 parent 5aa4c92 commit cb867bb

File tree

5 files changed

+20
-4
lines changed

5 files changed

+20
-4
lines changed

.gcloudignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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/

app.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
runtime: nodejs12

lxcodebase.sqlite

Whitespace-only changes.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
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": [],

src/controllers/CodebaseController.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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
})

0 commit comments

Comments
 (0)