Skip to content

Calling credsUpdate of rpc-creds problem #2136

@wh1t3zer

Description

@wh1t3zer

I've recently been developing a GUI client, and when calling the CredsUpdate function of rpc-creds, it succeeds when I try to change isCracked from false to true, but fails when I change it from true to false.

Image

when isCracked sent to server is false, SQL execution will not proceed.
Image

the log showed no output.

Image

In conclusion, the gorm framework, by default, does not include fields with zero values, such as false, in the SQL statement execution.
https://gorm.io/docs/update.html#Updates-multiple-columns

Image

Therefore, I have optimized the following code, and I hope it will be adopted.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions