Kaynağa Gözat

:recycle: moving match queue save -> AFTER check for scoredProfiles

tags/0.0.1
J 4 yıl önce
ebeveyn
işleme
9c10fff178
1 değiştirilmiş dosya ile 4 ekleme ve 5 silme
  1. 4
    5
      backend/lib/routes/profile/score.js

+ 4
- 5
backend/lib/routes/profile/score.js Dosyayı Görüntüle

60
                 distanceUnit,
60
                 distanceUnit,
61
             )
61
             )
62
 
62
 
63
-            await matchQueueService.saveMatchQueue(
64
-                profileId,
65
-                scoredProfiles.map(profile => profile.profile_id),
66
-            )
67
             try {
63
             try {
68
                 if (!scoredProfiles) {
64
                 if (!scoredProfiles) {
69
                     throw new RangeError('Unable to score profiles')
65
                     throw new RangeError('Unable to score profiles')
70
                 }
66
                 }
71
-
67
+                await matchQueueService.saveMatchQueue(
68
+                    profileId,
69
+                    scoredProfiles.map(profile => profile.profile_id),
70
+                )
72
                 return h
71
                 return h
73
                     .response({
72
                     .response({
74
                         ok: true,
73
                         ok: true,

Loading…
İptal
Kaydet