mirror of
https://github.com/mainflux/mainflux.git
synced 2025-04-29 13:49:28 +08:00
Signed-off-by: Chengyou Tang <tcy277813009@gmail.com> Co-authored-by: Chengyou Tang <tcy277813009@gmail.com> Co-authored-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
This commit is contained in:
parent
063f73076d
commit
e02e9c2387
@ -97,7 +97,7 @@ func (tr thingRepository) Update(ctx context.Context, t things.Thing) error {
|
||||
}
|
||||
|
||||
cnt, errdb := res.RowsAffected()
|
||||
if err != nil {
|
||||
if errdb != nil {
|
||||
return errors.Wrap(things.ErrUpdateEntity, errdb)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user