Skip to content

deleteFromCacheByFields fails when the query only uses one field #81

Open
@eth0lo

Description

@eth0lo

For example.

this.findByFields({
  tag: new ObjectId('some-tag-id')
})

and

this.deleteFromCacheByFields({
  tag: new ObjectId('some-tag-id')
})

generate different keys, for this case it will generate: {"tag":{"$oid":"6151e9b4b005977991064607"}} and {"tag":[{"$oid":"6151e9b4b005977991064607"}]} respectively; which will prevent the method from behaving correctly

the issue is generated here

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions