Skip to content
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

Merged
merged 11 commits into from
Aug 18, 2024
Merged

Conversation

xilucks
Copy link
Member

@xilucks xilucks commented Aug 17, 2024

타이틀, 내용 업데이트가 가능해요.

Copy link

linear bot commented Aug 17, 2024

// TODO: API insert page
// TODO: API log notification
await updateInvitation({
id: subDomain,
Copy link
Collaborator

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();
Copy link
Collaborator

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;
Copy link
Collaborator

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으로 상태 동기화 해주세용.

customFields: content,
id: editor.config.invitationId,
title: editor.config.invitationTitle,
customFields: content as Record<string, any>,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

기존 content는 로깅을 위해서 stringify한 것이기에 editor.datacustomFields로 요청해주세요.


editor.config.invitationTitle = value;
await updateInvitation({
id: editor.config.invitationSubdomain,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

요거 invitationSubdomain이 아닌 invitationId로 해주세요!

Copy link

The latest updates on your projects.

Name Status Preview Updated (UTC)
invi ✅ Ready (Inspect) Visit Preview 2024-08-18 16:19:23

Copy link
Collaborator

@bepyan bepyan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

제가 고쳤어요 참고바랍니다~!

@bepyan bepyan merged commit 41b2496 into main Aug 18, 2024
2 checks passed
@bepyan bepyan deleted the feature/inv-126 branch August 18, 2024 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants