-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
inv-126 : 타이틀, 내용 업데이트 쿼리 #64
Conversation
# Conflicts: # src/components/editor/title-input.tsx
src/components/editor/navigation.tsx
Outdated
// TODO: API insert page | ||
// TODO: API log notification | ||
await updateInvitation({ | ||
id: subDomain, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
subDomain은 수정이 가능하기에, editor.config.invitationId
로 적용해주세요1
} | ||
|
||
export async function createInvitation( | ||
params: CreateInvitationParams, | ||
): Promise<InvitationInsert> { | ||
const id = nanoid(); | ||
const currentTimestamp = new Date(); | ||
const sessionId = await getAuth(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const auth = await getAuth()
컨벤션 맞춰주시면 감사하겠습니다 🙇🏻♂️
@@ -49,9 +46,9 @@ export default function TitleInput() { | |||
if (signal.aborted) { | |||
return; | |||
} | |||
editorConfig.invitationTitle = value; | |||
editor.config.invitationTitle = value; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
await delay(1000);
비워주시고 api 요청 완료시에 UPDATE_CONFIG
action으로 상태 동기화 해주세용.
src/components/editor/navigation.tsx
Outdated
customFields: content, | ||
id: editor.config.invitationId, | ||
title: editor.config.invitationTitle, | ||
customFields: content as Record<string, any>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
기존 content는 로깅을 위해서 stringify한 것이기에 editor.data
를 customFields
로 요청해주세요.
|
||
editor.config.invitationTitle = value; | ||
await updateInvitation({ | ||
id: editor.config.invitationSubdomain, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
요거 invitationSubdomain
이 아닌 invitationId
로 해주세요!
The latest updates on your projects.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
제가 고쳤어요 참고바랍니다~!
타이틀, 내용 업데이트가 가능해요.