func (r *GormWorkItemLinkTypeRepository) Delete(ctx context.Context, spaceID uuid.UUID, ID uuid.UUID) error {
	var cat = WorkItemLinkType{
		ID:      ID,
		SpaceID: spaceID,
	}
	log.Info(ctx, map[string]interface{}{
		"wilt_id":  ID,
		"space_id": spaceID,
	}, "Work item link type to delete %v", cat)

	db := r.db.Delete(&cat)
	if db.Error != nil {
		return errors.NewInternalError(db.Error.Error())
	}
	if db.RowsAffected == 0 {
		return errors.NewNotFoundError("work item link type", ID.String())
	}
	return nil
}
// Delete deletes the work item link type with the given id
// returns NotFoundError or InternalError
Delete deletes the work item link type with the given id
returns NotFoundError or InternalError
// Delete deletes the work item link type with the given id // returns NotFoundError or InternalError
func (r *GormWorkItemLinkTypeRepository) Delete(ctx context.Context, spaceID uuid.UUID, ID uuid.UUID) error {
	var cat = WorkItemLinkType{
		ID:      ID,
		SpaceID: spaceID,
	}
	log.Info(ctx, map[string]interface{}{
		"wilt_id":  ID,
		"space_id": spaceID,
	}, "Work item link type to delete %v", cat)
	db := r.db.Delete(&cat)
	if db.Error != nil {
		return errors.NewInternalError(db.Error.Error())
	}
	if db.RowsAffected == 0 {
		return errors.NewNotFoundError("work item link type", ID.String())
	}
	return nil
}
func ( r * GormWorkItemLinkTypeRepository ) Delete ( ctx context . Context , spaceID uuid . UUID , ID uuid . UUID ) error { var cat = WorkItemLinkType { ID : ID , SpaceID : spaceID , } log . Info ( ctx , map [ string ] interface { } { " " : ID , " " : spaceID , } , " " , cat ) db := r . db . Delete ( & cat ) if db . Error != nil { return errors . NewInternalError ( db . Error . Error ( ) ) } if db . RowsAffected == 0 { return errors . NewNotFoundError ( " " , ID . String ( ) ) } return nil }
Delete deletes the work item link type with the given id
returns NotFoundError or InternalError
Delete deletes the work item link type with the given id returns NotFoundError or InternalError