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

pull out decoded ID for hashedFields #115

Merged
merged 1 commit into from
Jun 5, 2021
Merged

Conversation

jakeorr
Copy link
Contributor

@jakeorr jakeorr commented Jun 4, 2021

Hello! 👋

First off, thanks for the handy project. It's been great to use so far.

I noticed an issue related to the hashedFields static model property. It seemed like the hashed fields we being respected, but the decoding wasn't happening properly.

I built a project to reproduce the issue and to try out the fix. More description in the readme: https://github.com/jakeorr/objection-hashid-investigation

@JaneJeon
Copy link
Owner

JaneJeon commented Jun 5, 2021

Huh, I'm actually surprised it somehow didn't break on my own codebases (which uses objection-hashid).

Thanks for the easy reproduction, I'll be sure to add test cases covering this.

@JaneJeon JaneJeon merged commit 95e33db into JaneJeon:master Jun 5, 2021
@JaneJeon
Copy link
Owner

JaneJeon commented Jun 5, 2021

I will upload the fixed version to npm as soon as I can write a test for it.

@jakeorr
Copy link
Contributor Author

jakeorr commented Jun 7, 2021

Sounds great, thanks @JaneJeon!

@JaneJeon
Copy link
Owner

JaneJeon commented Jun 7, 2021

It's already been uploaded to npm, so just bump your version of objection-hashid!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants