diff --git a/db/primuss_conflicts.go b/db/primuss_conflicts.go index 425bdad..33aa9af 100644 --- a/db/primuss_conflicts.go +++ b/db/primuss_conflicts.go @@ -70,7 +70,7 @@ type Conflict struct { func (db *DB) getConflictsForAnCode(ctx context.Context, program string, ancode int) (*Conflict, error) { collection := db.getCollection(program, Conflicts) - raw, err := collection.FindOne(ctx, bson.D{{Key: "AnCo", Value: ancode}}).DecodeBytes() + raw, err := collection.FindOne(ctx, bson.D{{Key: "AnCo", Value: ancode}}).Raw() if err != nil { log.Error().Err(err).Str("program", program).Int("ancode", ancode).Msg("cannot get conflicts for ancode") return nil, err diff --git a/go.mod b/go.mod index 28df28e..daaac3b 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/obcode/plexams.go -go 1.22 +go 1.22.2 require ( github.com/99designs/gqlgen v0.17.45