chore: tweak api definition

This commit is contained in:
Steven
2024-04-27 22:02:15 +08:00
parent 04c78e180c
commit 9b66ef5e26
45 changed files with 1422 additions and 3231 deletions

View File

@ -30,12 +30,9 @@ const MemoCommentMessage = ({ inbox }: Props) => {
}
(async () => {
const { activity } = await activityServiceClient.getActivity({
const activity = await activityServiceClient.getActivity({
id: inbox.activityId,
});
if (!activity) {
return;
}
if (activity.payload?.memoComment) {
const memoCommentPayload = activity.payload.memoComment;
const relatedMemoId = memoCommentPayload.relatedMemoId;