File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/core/features/rating/services Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -256,7 +256,7 @@ export class CoreRatingProvider {
256256
257257 const response = await site . read < CoreRatingGetItemRatingsWSResponse > ( 'core_rating_get_item_ratings' , params , preSets ) ;
258258
259- if ( ! site . isVersionGreaterEqualThan ( [ ' 3.6.5' , '3.7.1' , '3.8' ] ) ) {
259+ if ( ! site . isVersionGreaterEqualThan ( [ '3.6.5' , '3.7.1' , '3.8' ] ) ) {
260260 // MDL-65042 We need to fetch profiles because the returned profile pictures are incorrect.
261261 const promises = response . ratings . map ( ( rating : CoreRatingItemRating ) =>
262262 CoreUser . getProfile ( rating . userid , courseId , true , site . id ) . then ( ( user ) => {
@@ -407,7 +407,7 @@ export class CoreRatingProvider {
407407
408408 const ratingsResults = await Promise . all ( promises ) ;
409409
410- if ( ! site . isVersionGreaterEqualThan ( [ ' 3.6.5' , '3.7.1' , '3.8' ] ) ) {
410+ if ( ! site . isVersionGreaterEqualThan ( [ '3.6.5' , '3.7.1' , '3.8' ] ) ) {
411411 const ratings : CoreRatingItemRating [ ] = [ ] . concat . apply ( [ ] , ratingsResults ) ;
412412
413413 const userIds = ratings . map ( ( rating ) => rating . userid ) ;
You can’t perform that action at this time.
0 commit comments