Skip to content

Commit

Permalink
Merge pull request #99 from screwdriver-cd/sql
Browse files Browse the repository at this point in the history
fix: add rangeKey for event
  • Loading branch information
petey authored Dec 19, 2016
2 parents 8a17bc9 + 1e21fd1 commit 8fcb910
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 8fcb910

Please sign in to comment.