Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Address sqlite findAll bug#7

Open
jamescqcampbell wants to merge 1 commit intofnando:main from
jamescqcampbell:main
Open

Address sqlite findAll bug #7
jamescqcampbell wants to merge 1 commit intofnando:main from
jamescqcampbell:main

Conversation

@jamescqcampbell
Copy link

@jamescqcampbell jamescqcampbell commented Jun 13, 2021

When used with sqlite Model.findAll returns an Array of instances.

They not recognised by Keychain as an Array in sequelize.js line 51 (as typeof record returns 'object'). The hook throws a TypeError line 52 is not called and it attempts to run the afterFind hook on the array and not the record.

Switching to Array.isArray(record) solves the issue.

When used with sqlite Model.findAll returns an Array of instances that is not recognised by Keychain as an Array in line 51 (as typeof record returns 'object') and the hook throws a TypeError. Switching to Array.isArray(record) solves the issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /