-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Maybe a CompareSync Bug #68
Comments
I suspect the error occurs because compareSync(string,hash) takes string as the first argument and hash as the second. I suspect since hash should have considerably longer (and fixed) length, that's where the error occurs. |
Thanks for the reply. After 4 days, I found it's a mongoose issue... Sorry for this. You can close now |
@jackalsin I read that issue and couldn't figure out what the verdict was. From what I see,
Why would this be an issue? Can you please explain what you did to resolve the issue?
|
I am having the same issue... how is hash not a string? |
You can console.dir(the_obj_you_want_hash). Mongoose has changed the api. Dir the object. |
Fixed. Thanks |
I encounter an issue when using CompareSync in model
The result is as follows
As you can see, the program is normal before calling
compareSync
, and the Strings to compare are quite reasonable, and it throws an exceptionThe text was updated successfully, but these errors were encountered: