feat(workers): implement worker service add/set/remove api tags
This commit is contained in:
1 parent
d5633952db
commit
28f53a64b4
15 files changed
+2354
-192
No files matched your search
@@ -711,7 +711,8 @@ func (r *Repository) DeleteWorkerTags(ctx context.Context, workerId string, work
|
||||
return errors.Wrap(ctx, err, op, errors.WithMsg("unable to delete worker tags"))
|
||||
}
|
||||
if rowsDeleted != len(deleteTags) {
|
||||
return errors.New(ctx, errors.MultipleRecords, op, fmt.Sprintf("tags deleted %d did not match request for %d", rowsDeleted, len(tags)))
|
||||
return errors.New(ctx, errors.MultipleRecords, op,
|
||||
fmt.Sprintf("unable to delete specified tag: tags deleted %d did not match request for %d", rowsDeleted, len(tags)))
|
||||
}
|
||||
return nil
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user