Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rkamradt committed Jul 23, 2020
1 parent e080351 commit 9e9262d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion create-configmap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export CREDS=`echo $DOCKERHUB_USER:$DOCKERHUB_PASSWORD | base64`
export CREDS=`echo -n "$DOCKERHUB_USER:$DOCKERHUB_PASSWORD" | base64`
echo credentials = $CREDS

cat <<EOF | kubectl apply -f -
Expand Down
6 changes: 0 additions & 6 deletions create_secret

This file was deleted.

3 changes: 3 additions & 0 deletions mongoservice.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ module.exports.addListToRequest = async (req,res,next) => {
const db = client.db(dbName)

req.list = await db.collection('inserts').find({}).toArray();
if(!req.list) {
req.list = [ "empty" ]
}
} catch (err) {
console.log(err.stack)
}
Expand Down
2 changes: 1 addition & 1 deletion routes/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var express = require('express');
var router = express.Router();

/* GET users listing. */
router.get('/', function(req, res, next) {
router.get('/users', function(req, res, next) {
res.send('respond with a resource');
});

Expand Down

0 comments on commit 9e9262d

Please sign in to comment.