Skip to content

Commit

Permalink
fixed FindEdgeTagById
Browse files Browse the repository at this point in the history
  • Loading branch information
caffix committed Nov 16, 2024
1 parent 3d830a2 commit b202c90
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion repository/sqlrepo/tag.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,12 +259,17 @@ func (sql *sqlRepository) FindEdgeTagById(id string) (*types.EdgeTag, error) {
return nil, err
}

edge, err := sql.edgeById(strconv.FormatUint(tag.EdgeID, 10))
if err != nil {
return nil, err
}

return &types.EdgeTag{
ID: strconv.FormatUint(tag.ID, 10),
CreatedAt: tag.CreatedAt,
LastSeen: tag.LastSeen,
Property: data,
Edge: &types.Edge{ID: strconv.FormatUint(tag.EdgeID, 10)},
Edge: edge,
}, nil
}

Expand Down

0 comments on commit b202c90

Please sign in to comment.