Skip to content

Commit 518d288

Browse files
henrybarretogustavosbarreto
authored andcommitted
fix(api): remove deprecated write convern usage on session event
1 parent 198a7f0 commit 518d288

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/store/mongo/session.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ func (s *Store) SessionEvent(ctx context.Context, uid models.UID, event *models.
324324

325325
txnOpts := options.Transaction().
326326
SetReadConcern(readconcern.Snapshot()).
327-
SetWriteConcern(writeconcern.New(writeconcern.WMajority())) //nolint:staticcheck
327+
SetWriteConcern(writeconcern.Majority())
328328

329329
if _, err := session.WithTransaction(ctx, func(ctx mongo.SessionContext) (interface{}, error) {
330330
if _, err := s.db.Collection("sessions").UpdateOne(ctx,

0 commit comments

Comments
 (0)