Skip to content
This repository has been archived by the owner on Jul 1, 2023. It is now read-only.

Commit

Permalink
fix: fetch incompatible set & vocabulary if version is lower
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmyloi committed Aug 25, 2020
1 parent 6faf98a commit 1f3a80e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class IncompatibleSetModel {
const query = squel
.select()
.from(TableName.INCOMPATIBLE_SET)
.where('lastTriedCommonVersion != ?', currentCommonVersion)
.where('lastTriedCommonVersion < ?', currentCommonVersion)
.limit(limit)
.toParam();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ describe('IncompatibileVocabularyModel', (): void => {
expect(vocabularyIds).toIncludeSameMembers([]);
});

test('should return incompatible vocabulary ids if current version is lower', async (): Promise<
test('should not return incompatible vocabulary ids if current version is lower', async (): Promise<
void
> => {
const {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class IncompatibleVocabularyModel {
const query = squel
.select()
.from(TableName.INCOMPATIBLE_VOCABULARY)
.where('lastTriedCommonVersion != ?', currentCommonVersion)
.where('lastTriedCommonVersion < ?', currentCommonVersion)
.limit(limit)
.toParam();

Expand Down

0 comments on commit 1f3a80e

Please sign in to comment.