Skip to content
This repository was archived by the owner on Mar 11, 2021. It is now read-only.

Commit 1082cdb

Browse files
committed
Merge remote-tracking branch 'upstream/master' into cascaded-soft-deletes
2 parents c045942 + 44739f8 commit 1082cdb

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

controller/workitem.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -324,14 +324,6 @@ func findLastModified(wis []workitem.WorkItem) time.Time {
324324
// ConvertJSONAPIToWorkItem is responsible for converting given WorkItem model object into a
325325
// response resource object by jsonapi.org specifications
326326
func ConvertJSONAPIToWorkItem(ctx context.Context, method string, appl application.Application, source app.WorkItem, target *workitem.WorkItem, witID uuid.UUID, spaceID uuid.UUID) error {
327-
// load work item type to perform conversion according to a field type
328-
wit, err := appl.WorkItemTypes().Load(ctx, witID)
329-
if err != nil {
330-
return errs.Wrapf(err, "failed to load work item type: %s", witID)
331-
}
332-
_ = wit
333-
334-
// construct default values from input WI
335327
version, err := getVersion(source.Attributes["version"])
336328
if err != nil {
337329
return err

0 commit comments

Comments
 (0)