Skip to content

Commit

Permalink
prettier:fix
Browse files Browse the repository at this point in the history
  • Loading branch information
joseffffff committed Jun 29, 2024
1 parent c2cc4b1 commit ed65c45
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/GoogleSpreadsheetsOrm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,8 @@ export class GoogleSpreadsheetsOrm<T extends BaseModel> {
[column in keyof T]?: ParsedSpreadsheetCellValue | ParsedSpreadsheetCellValue[];
} = {},
entity: T,
): boolean => Object.entries(filters)
.every(([entityField, fieldValue]) => {
): boolean =>
Object.entries(filters).every(([entityField, fieldValue]) => {
const entityValue = entity[entityField as keyof T];

if (Array.isArray(fieldValue)) {
Expand Down
9 changes: 3 additions & 6 deletions tests/GoogleSpreadsheetsOrm.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ describe(GoogleSpreadsheetsOrm.name, () => {
const entities = await sut.all({
filter: {
current: true,
}
},
});

const expectedValues: TestEntity[] = [
Expand Down Expand Up @@ -231,11 +231,8 @@ describe(GoogleSpreadsheetsOrm.name, () => {

const entities = await sut.all({
filter: {
id: [
'ae222b54-182f-4958-b77f-26a3a04dff32',
'ae222b54-182f-4958-b77f-26a3a04dff33',
],
}
id: ['ae222b54-182f-4958-b77f-26a3a04dff32', 'ae222b54-182f-4958-b77f-26a3a04dff33'],
},
});

const expectedValues: TestEntity[] = [
Expand Down

0 comments on commit ed65c45

Please sign in to comment.