-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
3242 all message recipients should be stored #3320
Conversation
): AddressObject[] { | ||
if (!addressObject) return []; | ||
|
||
if (!Array.isArray(addressObject)) { |
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.
nit:
if (!Array.isArray(addressObject)) { | |
return Array.isArray(addressObject) ? addressObject : [addressObject]; | |
[fromHandle], | ||
); | ||
|
||
const workspaceMemberId = workspaceMember[0]?.accountOwnerId; |
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 workspaceMemberId = workspaceMember[0]?.accountOwnerId; | |
const workspaceMemberId = workspaceMember[0]?.id; |
I think you meant this?
[recipient.address], | ||
); | ||
|
||
const recipientWorkspaceMemberId = workspaceMember[0]?.accountOwnerId; |
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.
Same here, probably
const recipientWorkspaceMemberId = workspaceMember[0]?.accountOwnerId; | |
const recipientWorkspaceMemberId = workspaceMember[0]?.id; |
|
||
const recipientWorkspaceMemberId = workspaceMember[0]?.accountOwnerId; | ||
|
||
await manager.query( |
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.
nit: pgql should handle bulk insert
], | ||
); | ||
|
||
await this.saveMessageRecipients( |
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.
nit: We could probably mutualise this?
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.
LGTM
Closes #3242