Skip to content

Commit

Permalink
rm deprecated function
Browse files Browse the repository at this point in the history
  • Loading branch information
obcode committed May 6, 2024
1 parent 389a67f commit 2c795bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion db/primuss_conflicts.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 2c795bb

Please sign in to comment.