Skip to content

Commit 1da44ea

Browse files
committed
fixed firebase
1 parent e63b43e commit 1da44ea

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

apps/backend/functions/src/routes/problems.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,15 @@ export const editProblem = onCall(async (request) => {
2323
const updateType = request.data.type;
2424
const updateNotionDocId = request.data.notionDocId;
2525

26-
const problemDetails = await db.collection("problems").doc(problemId.toString()).update({
26+
await db.collection("problems").doc(problemId.toString()).update({
2727
title: updateTitle,
2828
description: updateDescription,
2929
type: updateType,
3030
notionDocId: updateNotionDocId,
3131
});
3232

3333
return {
34-
problem: {
35-
...problemDetails.data(),
36-
id: problemDetails.id,
37-
},
34+
updated: true,
3835
};
3936
});
4037

0 commit comments

Comments
 (0)