fix: patch memo row status (#1755)

This commit is contained in:
boojack 2023-05-27 11:14:23 +08:00 committed by GitHub
parent 2e34ce90a1
commit c40aeb91e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -175,6 +175,9 @@ func (s *Store) UpdateMemo(ctx context.Context, update *UpdateMemoMessage) error
if v := update.UpdatedTs; v != nil {
set, args = append(set, "updated_ts = ?"), append(args, *v)
}
if v := update.RowStatus; v != nil {
set, args = append(set, "row_status = ?"), append(args, *v)
}
if v := update.Content; v != nil {
set, args = append(set, "content = ?"), append(args, *v)
}