@@ -104,7 +104,7 @@ func (m *MongoDBRepository) SetupUser(ctx context.Context, database string, user
104
104
func (m * MongoDBRepository ) DropUser (ctx context.Context , database string , username string ) error {
105
105
command := & bson.D {primitive.E {Key : "dropUser" , Value : username }}
106
106
r := m .runCommand (ctx , database , command )
107
- if _ , err := r .DecodeBytes (); err != nil {
107
+ if _ , err := r .Raw (); err != nil {
108
108
return err
109
109
}
110
110
return nil
@@ -168,7 +168,7 @@ func (m *MongoDBRepository) createUser(ctx context.Context, database string, use
168
168
command := & bson.D {primitive.E {Key : "createUser" , Value : username }, primitive.E {Key : "pwd" , Value : password },
169
169
primitive.E {Key : "roles" , Value : m .getRoles (database , roles )}}
170
170
r := m .runCommand (ctx , database , command )
171
- if _ , err := r .DecodeBytes (); err != nil {
171
+ if _ , err := r .Raw (); err != nil {
172
172
return err
173
173
}
174
174
return nil
@@ -178,7 +178,7 @@ func (m *MongoDBRepository) updateUserPasswordAndRoles(ctx context.Context, data
178
178
command := & bson.D {primitive.E {Key : "updateUser" , Value : username }, primitive.E {Key : "pwd" , Value : password },
179
179
primitive.E {Key : "roles" , Value : m .getRoles (database , roles )}}
180
180
r := m .runCommand (ctx , database , command )
181
- if _ , err := r .DecodeBytes (); err != nil {
181
+ if _ , err := r .Raw (); err != nil {
182
182
return err
183
183
}
184
184
return nil
0 commit comments