Skip to content
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

Unable to destroy record when filtering on ID and another field #6

Open
sceee opened this issue Sep 21, 2018 · 0 comments
Open

Unable to destroy record when filtering on ID and another field #6

sceee opened this issue Sep 21, 2018 · 0 comments

Comments

@sceee
Copy link

sceee commented Sep 21, 2018

Hi,

First of all thanks for providing this adapter.
I am facing an issue when trying to delete a record in my model via:

await MyEntity.destroy({
        id: entityID,
        owner: ownerID
      });

ID and owner are both integers, but unfortunately it does not delete the row.
If I remove the condition for owner, the record is indeed deleted so this one works:

await MyEntity.destroy({
        id: entityID
      });

I tried hunting it down but unfortunately I was unable to find the cause for this until now.
Checking the result in getEntities(), the "resps" contains "NO_MORE_RESULTS".

Do you know if that's a bug or what could be the cause for this?

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

No branches or pull requests

1 participant