Skip to content

strapi.query("aaa").update() only change one data #8089

@mtrucc

Description

@mtrucc

Describe the bug
strapi.query("aaa").update() only change one data

Steps to reproduce the behavior

      await strapi
        .query("aaa")
        .update({ type:oldType }, { type: newType });

Only the first piece of data is updated, other data whose type is oldType is not updated

Expected behavior
Update all data whose type is oldType to newType

System

  • Node.js version: 12.18.0
  • NPM version: 6.14
  • Strapi version:
  • Database: default
  • Operating system: Win10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions