@@ -125,93 +125,67 @@ export class MatchesModule implements NestModule {
125125 return ;
126126 }
127127
128- scheduleMatchQueue
129- . add (
130- CheckForScheduledMatches . name ,
131- { } ,
132- {
133- repeat : {
134- pattern : "* * * * *" ,
135- } ,
128+ void scheduleMatchQueue . add (
129+ CheckForScheduledMatches . name ,
130+ { } ,
131+ {
132+ repeat : {
133+ pattern : "* * * * *" ,
136134 } ,
137- )
138- . catch ( ( err ) => {
139- this . logger . error ( "Failed to add CheckForScheduledMatches job" , err ) ;
140- } ) ;
135+ } ,
136+ ) ;
141137
142- scheduleMatchQueue
143- . add (
144- CancelExpiredMatches . name ,
145- { } ,
146- {
147- repeat : {
148- pattern : "* * * * *" ,
149- } ,
138+ void scheduleMatchQueue . add (
139+ CancelExpiredMatches . name ,
140+ { } ,
141+ {
142+ repeat : {
143+ pattern : "* * * * *" ,
150144 } ,
151- )
152- . catch ( ( err ) => {
153- this . logger . error ( "Failed to add CancelExpiredMatches job" , err ) ;
154- } ) ;
145+ } ,
146+ ) ;
155147
156- scheduleMatchQueue
157- . add (
158- RemoveCancelledMatches . name ,
159- { } ,
160- {
161- repeat : {
162- pattern : "* * * * *" ,
163- } ,
148+ void scheduleMatchQueue . add (
149+ RemoveCancelledMatches . name ,
150+ { } ,
151+ {
152+ repeat : {
153+ pattern : "* * * * *" ,
164154 } ,
165- )
166- . catch ( ( err ) => {
167- this . logger . error ( "Failed to add RemoveCancelledMatches job" , err ) ;
168- } ) ;
155+ } ,
156+ ) ;
169157
170- matchServersQueue
171- . add (
172- CheckForTournamentStart . name ,
173- { } ,
174- {
175- repeat : {
176- pattern : "* * * * *" ,
177- } ,
158+ void matchServersQueue . add (
159+ CheckForTournamentStart . name ,
160+ { } ,
161+ {
162+ repeat : {
163+ pattern : "* * * * *" ,
178164 } ,
179- )
180- . catch ( ( err ) => {
181- this . logger . error ( "Failed to add CheckForTournamentStart job" , err ) ;
182- } ) ;
165+ } ,
166+ ) ;
183167
184- matchServersQueue
185- . add (
186- CleanAbandonedMatches . name ,
187- { } ,
188- {
189- repeat : {
190- pattern : "0 0 * * *" ,
191- } ,
168+ void matchServersQueue . add (
169+ CleanAbandonedMatches . name ,
170+ { } ,
171+ {
172+ repeat : {
173+ pattern : "0 0 * * *" ,
192174 } ,
193- )
194- . catch ( ( err ) => {
195- this . logger . error ( "Failed to add CleanAbandonedMatches job" , err ) ;
196- } ) ;
175+ } ,
176+ ) ;
197177
198- matchServersQueue
199- . add (
200- CancelInvalidTournaments . name ,
201- { } ,
202- {
203- repeat : {
204- pattern : "* * * * *" ,
205- } ,
178+ void matchServersQueue . add (
179+ CancelInvalidTournaments . name ,
180+ { } ,
181+ {
182+ repeat : {
183+ pattern : "* * * * *" ,
206184 } ,
207- )
208- . catch ( ( err ) => {
209- this . logger . error ( "Failed to add CancelInvalidTournaments job" , err ) ;
210- } ) ;
185+ } ,
186+ ) ;
211187
212- this . generatePlayerRatings ( ) . catch ( ( err ) => {
213- this . logger . error ( "Failed to generate player ratings" , err ) ;
214- } ) ;
188+ void this . generatePlayerRatings ( ) ;
215189 }
216190
217191 /**
0 commit comments