Hi all,
I have an headscratch and I am wondering if someone can help mw with this ticket: the “status” check fails (preferences weren’t saved correctly) but the unittest succeed. I really cannot figure out the reason. My implementation of the method is below:
var filter = Builders<User>.Filter.Eq( y => y.Email , email);
var updateFields = Builders<User>.Update.Set(y => y.Preferences, preferences);
var opts = new UpdateOptions { IsUpsert = false };
updateResult = await _usersCollection.UpdateOneAsync(filter, updateFields, opts, cancellationToken);