Skip to content

Commit

Permalink
Merge a575a61 into b77f321
Browse files Browse the repository at this point in the history
  • Loading branch information
wmurphyrd committed Jan 2, 2023
2 parents b77f321 + a575a61 commit 79058d3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -11,3 +11,4 @@ services:
jobs:
- script: 'npm test'
- script: 'npm run coverage'
- script: 'npm run lint'
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -9,7 +9,8 @@
},
"scripts": {
"test": "jasmine",
"coverage": "nyc npm test && nyc report --reporter=text-lcov | coveralls"
"coverage": "nyc npm test && nyc report --reporter=text-lcov | coveralls",
"lint": "standard"
},
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions store/index.js
Expand Up @@ -101,7 +101,7 @@ class ApexStore extends IApexStore {
getObject (id, includeMeta) {
return this.db
.collection('objects')
.find({ id: id })
.find({ id })
.limit(1)
// strict comparison as we don't want to return private keys on accident
.project(includeMeta === true ? this.metaProj : this.projection)
Expand Down Expand Up @@ -135,7 +135,7 @@ class ApexStore extends IApexStore {

getActivity (id, includeMeta) {
return this.db.collection('streams')
.find({ id: id })
.find({ id })
.limit(1)
.project(includeMeta ? this.metaProj : this.projection)
.next()
Expand Down

0 comments on commit 79058d3

Please sign in to comment.