@@ -1992,12 +1992,12 @@ func (db *IndexerDb) Assets(ctx context.Context, filter idb.AssetsQuery) (<-chan
1992
1992
whereArgs := make ([]interface {}, 0 , maxWhereParts )
1993
1993
partNumber := 1
1994
1994
if filter .AssetID != nil {
1995
- whereParts = append (whereParts , fmt .Sprintf ("a.index = $%d" , partNumber ))
1995
+ whereParts = append (whereParts , fmt .Sprintf ("a.id = $%d" , partNumber ))
1996
1996
whereArgs = append (whereArgs , * filter .AssetID )
1997
1997
partNumber ++
1998
1998
}
1999
1999
if filter .AssetIDGreaterThan != nil {
2000
- whereParts = append (whereParts , fmt .Sprintf ("a.index > $%d" , partNumber ))
2000
+ whereParts = append (whereParts , fmt .Sprintf ("a.id > $%d" , partNumber ))
2001
2001
whereArgs = append (whereArgs , * filter .AssetIDGreaterThan )
2002
2002
partNumber ++
2003
2003
}
@@ -2248,7 +2248,7 @@ func (db *IndexerDb) Applications(ctx context.Context, filter idb.ApplicationQue
2248
2248
whereArgs := make ([]interface {}, 0 , maxWhereParts )
2249
2249
partNumber := 1
2250
2250
if filter .ApplicationID != nil {
2251
- whereParts = append (whereParts , fmt .Sprintf ("index = $%d" , partNumber ))
2251
+ whereParts = append (whereParts , fmt .Sprintf ("id = $%d" , partNumber ))
2252
2252
whereArgs = append (whereArgs , * filter .ApplicationID )
2253
2253
partNumber ++
2254
2254
}
@@ -2258,7 +2258,7 @@ func (db *IndexerDb) Applications(ctx context.Context, filter idb.ApplicationQue
2258
2258
partNumber ++
2259
2259
}
2260
2260
if filter .ApplicationIDGreaterThan != nil {
2261
- whereParts = append (whereParts , fmt .Sprintf ("index > $%d" , partNumber ))
2261
+ whereParts = append (whereParts , fmt .Sprintf ("id > $%d" , partNumber ))
2262
2262
whereArgs = append (whereArgs , * filter .ApplicationIDGreaterThan )
2263
2263
partNumber ++
2264
2264
}
0 commit comments