Skip to content

Commit da290b2

Browse files
committed
fix: 커스텀 스티커 수정 API
1 parent aa45aa3 commit da290b2

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

apps/web/src/components/topic/edit-sticker-sidebar/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,11 @@ export default function EditTopicSidebar() {
148148
},
149149
}
150150
);
151-
} else if (editingSticker.type === "custom_sticker") {
151+
} else if (editingSticker.type === "custom_sticker" && topicId) {
152152
await updateCustomSticker(
153153
{
154154
customStickerId: editingSticker.id,
155+
topicId,
155156
title,
156157
content,
157158
},

apps/web/src/services/custom-sticker.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ export const createCustomSticker = async (props: {
5151

5252
export const updateCustomSticker = async (props: {
5353
customStickerId: number;
54+
topicId: string;
5455
title: string;
5556
content: string;
5657
}): Promise<BaseResponseDTO<unknown>> => {

0 commit comments

Comments
 (0)