Skip to content

Commit

Permalink
fix: remove 'type' from attributes table select statement
Browse files Browse the repository at this point in the history
  • Loading branch information
tolgaOzen committed Oct 27, 2023
1 parent 2c27177 commit 8bd6fb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/storage/postgres/dataReader.go
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ func (r *DataReader) ReadAttributes(ctx context.Context, tenantID string, filter
defer utils.Rollback(tx)

// Build the relationships query based on the provided filter, snapshot value, and pagination settings.
builder := r.database.Builder.Select("id, entity_type, entity_id, attribute, type, value").From(AttributesTable).Where(squirrel.Eq{"tenant_id": tenantID})
builder := r.database.Builder.Select("id, entity_type, entity_id, attribute, value").From(AttributesTable).Where(squirrel.Eq{"tenant_id": tenantID})
builder = utils.AttributesFilterQueryForSelectBuilder(builder, filter)
builder = utils.SnapshotQuery(builder, st.(snapshot.Token).Value.Uint)

Expand Down

0 comments on commit 8bd6fb9

Please sign in to comment.