Skip to content

fix(adapter-commons): clean up in sort.ts and select function#2492

Merged
daffl merged 1 commit intofeathersjs:dovefrom
vonagam:fix-adapter-commons-things
Nov 26, 2021
Merged

fix(adapter-commons): clean up in sort.ts and select function#2492
daffl merged 1 commit intofeathersjs:dovefrom
vonagam:fix-adapter-commons-things

Conversation

@vonagam
Copy link
Member

@vonagam vonagam commented Nov 21, 2021

After last merged PR looked into sort.ts and saw some things that can be cleaned up. Did so.

Also in select function there was push() into params.query.$select if they were present and otherFields provided. Should be concated into new array instead.

@daffl
Copy link
Member

daffl commented Nov 26, 2021

Great call. I copied the sorting from NeDB a while ago (this is also why it doesn't have that many tests) and this is definitely nicee. Using the exports. variable probably only still worked by accident.

@daffl daffl merged commit c3ec8a4 into feathersjs:dove Nov 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants