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

[bug] update with fields option #274

Closed
JimmyDaddy opened this issue Feb 18, 2022 · 0 comments
Closed

[bug] update with fields option #274

JimmyDaddy opened this issue Feb 18, 2022 · 0 comments

Comments

@JimmyDaddy
Copy link
Collaborator

// status = 1
const user = await user.update({
  name: 'sss',
 status: 0,
}, {
 fields: [ 'name' ],
});
// actually only updated name in db, but user.status = 0 in memory
JimmyDaddy pushed a commit that referenced this issue Feb 18, 2022
@cyjake cyjake closed this as completed in 5302657 Feb 21, 2022
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