Skip to content

Commit be5c0ac

Browse files
authored
Merge pull request #15 from Arkiv-Network/fix-skip-attributes
skip numeric attributes instead of string attributes
2 parents e85e192 + 6df583a commit be5c0ac

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

sqlitestore.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -294,19 +294,19 @@ func (s *SQLiteStore) FollowEvents(ctx context.Context, iterator arkivevents.Bat
294294
// TODO: delete entity from the indexes
295295

296296
for k, v := range stringAttributes {
297-
// skip txIndex and opIndex because they are not used for querying
298-
switch k {
299-
case "$txIndex", "$opIndex":
300-
continue
301-
}
302-
303297
err = sbo.Add(ctx, k, v, id)
304298
if err != nil {
305299
return fmt.Errorf("failed to add string attribute value bitmap: %w", err)
306300
}
307301
}
308302

309303
for k, v := range numericAttributes {
304+
// skip txIndex and opIndex because they are not used for querying
305+
switch k {
306+
case "$txIndex", "$opIndex":
307+
continue
308+
}
309+
310310
err = nbo.Add(ctx, k, v, id)
311311
if err != nil {
312312
return fmt.Errorf("failed to add numeric attribute value bitmap: %w", err)

0 commit comments

Comments
 (0)