Skip to content

Commit 1cbf40b

Browse files
committed
chore: remove migration trigger
1 parent 0319bab commit 1cbf40b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/functions/src/createExamQuestion.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { logger } from "firebase-functions/v2";
88
import { HttpsError, onCall } from "firebase-functions/v2/https";
99
// @ts-ignore
1010
import { FirestoreCollection, Question } from "@examtraining/core";
11-
import { collectionRef, getDocument, migrateAnswersIfNeeded } from "./utils";
11+
import { collectionRef, getDocument } from "./utils";
1212

1313
type CreateExamQuestionParams = {
1414
slug: string;
@@ -52,7 +52,7 @@ export const createExamQuestion = onCall<
5252
);
5353
}
5454

55-
await migrateAnswersIfNeeded(exam);
55+
// await migrateAnswersIfNeeded(exam);
5656

5757
// Add question
5858
await collectionRef(

packages/functions/src/editExamQuestion.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { logger } from "firebase-functions/v2";
88
import { HttpsError, onCall } from "firebase-functions/v2/https";
99
// @ts-ignore
1010
import { FirestoreCollection, Question } from "@examtraining/core";
11-
import { collectionRef, getDocument, migrateAnswersIfNeeded } from "./utils";
11+
import { collectionRef, getDocument } from "./utils";
1212

1313
type EditExamQuestionParams = {
1414
slug: string;
@@ -53,7 +53,7 @@ export const editExamQuestion = onCall<
5353
);
5454
}
5555

56-
await migrateAnswersIfNeeded(exam);
56+
// await migrateAnswersIfNeeded(exam);
5757

5858
// Update question
5959
const questionRef = collectionRef(

0 commit comments

Comments
 (0)