-
Notifications
You must be signed in to change notification settings - Fork 267
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
Feature/JS-5093: Publishing #988
base: main
Are you sure you want to change the base?
Conversation
json was generated by castom code from mapping, I don't know how to do the same in easy way in middleware yet. So for now I'm just sending the whole object instead of id.
Row = 0, | ||
Column = 1, | ||
Div = 2, | ||
Header = 3, | ||
TableRows = 4, | ||
TableColumns = 5, |
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.
Why to format it like that?
if (message.error.code) { | ||
return; | ||
}; |
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.
you can just skip brackets and make in online.
if (message.error.code) return
export const ObjectPublish = (response: Rpc.Object.Publish.Response) => { | ||
return { | ||
cid: response.getPublishcid(), | ||
key: response.getPublishfilekey(), | ||
}; | ||
}; | ||
|
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.
export const ObjectPublish = (response: Rpc.Object.Publish.Response) => ({
cid: response.getPublishcid(),
key: response.getPublishfilekey(),
})
I find it nicer
Description
What type of PR is this? (check all applicable)
Related Tickets & Documents
Mobile & Desktop Screenshots/Recordings
Added tests?
Added to documentation?
[optional] Are there any post-deployment tasks we need to perform?