Skip to content

Commit

Permalink
fix: add rangeKey for event
Browse files Browse the repository at this point in the history
  • Loading branch information
minzcmu committed Dec 19, 2016
1 parent 8a17bc9 commit 1e21fd1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion models/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ module.exports = {
* @property rangeKeys
* @type {Array}
*/
rangeKeys: ['createTime', null],
rangeKeys: ['createTime', 'createTime'],

/**
* Tablename to be used in the datastore
Expand Down
2 changes: 1 addition & 1 deletion test/models/event.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ describe('model event', () => {
it('defines the correct rangeKeys', () => {
const expected = [
'createTime',
null
'createTime'
];
const rangeKeys = models.event.rangeKeys;

Expand Down

0 comments on commit 1e21fd1

Please sign in to comment.