SCIM: Add is provisioned field to update command (#107978)
* Remove noisy log line * Add IsProvisioned field to UpdateUserCommand * Update user store to include the new IsProvisioned field * Update store tests to include the new IsProvisioned field
This commit is contained in:
@@ -278,6 +278,10 @@ func (ss *sqlStore) Update(ctx context.Context, cmd *user.UpdateUserCommand) err
|
||||
q = q.MustCols("help_flags1")
|
||||
usr.HelpFlags1 = *cmd.HelpFlags1
|
||||
})
|
||||
setOptional(cmd.IsProvisioned, func(v bool) {
|
||||
q = q.UseBool("is_provisioned")
|
||||
usr.IsProvisioned = v
|
||||
})
|
||||
|
||||
if _, err := q.Update(&usr); err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user