Skip to content

Commit 959a443

Browse files
committed
recommitting files due to branch conflict. All PR changes reflected
1 parent 86eefee commit 959a443

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

lesson_03/quiz/src/quizzes/quizzes.module.ts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import { Module } from '@nestjs/common';
2+
import { AmiyahJonesQuiz } from './amiyah_jones_quiz.js';
3+
import { AngelicaCQuiz } from './angelica_c_quiz.js';
24
import { AnotherQuiz } from './another_quiz.js';
35
import { AnthonyMaysQuiz } from './anthony_mays_quiz.js';
46
import { ChigazoGrahamsQuiz } from './chigazo_graham_quiz.js';
@@ -11,6 +13,33 @@ import { YafiahAbdullahQuiz } from './yafiah_abdullah_quiz.js';
1113

1214
export const Quizzes = Symbol.for('Quizzes');
1315

16+
// Add your quiz provider here.
17+
18+
const QUIZ_PROVIDERS = [
19+
AnthonyMaysQuiz,
20+
YafiahAbdullahQuiz,
21+
AnotherQuiz,
22+
JosephCaballeroQuiz,
23+
OyeyemiJimohQuiz,
24+
ChigazoGrahamsQuiz,
25+
AmiyahJonesQuiz,
26+
LjMcwilliamsQuiz,
27+
];
28+
29+
@Module({
30+
providers: [
31+
...QUIZ_PROVIDERS,
32+
{
33+
provide: Quizzes,
34+
useFactory: (...args) => [...args],
35+
inject: QUIZ_PROVIDERS,
36+
},
37+
],
38+
})
39+
export class QuizzesModule {}
40+
41+
export const Quizzes = Symbol.for('Quizzes');
42+
1443
// Add your quiz provider here.
1544
const QUIZ_PROVIDERS = [
1645
AnthonyMaysQuiz,

0 commit comments

Comments
 (0)