Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@TilenKreca
Copy link

Resolves #5376
Impact: critical
Type: bugfix

Issue

Primary shopId in accounts collection, gets replaced with newly created shop id, after new shop owner invitation. Described fully in issue #5376

Solution

Is provided by this pull request.

Breaking changes

No breaking changes or functional changes

Testing

Needs testing

…as replaced with newly created shop, after first shop owner invitation
Logger.info("Created shop: ", newShopId);

Promise.await(appEvents.emit("afterShopCreate", { createdBy: userId, shop: newShop }));
Promise.await(appEvents.emit("afterShopCreate", { createdBy: shopAdminUserId, shop: newShop }));
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Promise.await(appEvents.emit("afterShopCreate", { createdBy: shopAdminUserId, shop: newShop }));
Promise.await(appEvents.emit("afterShopCreate", { createdBy: userId, shop: newShop, shopAdminUserId: shopAdminUserId || userId }));

@kieckhafer
Copy link
Member

Thanks for the PR @TilenKreca. I didn't have the ability to edit your branch, so I created another PR with a few more updates: #5694

I'm going to close this PR, please follow the status in #5694

@kieckhafer kieckhafer closed this Oct 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing translations / Problems with updating email settings over Admin-UI

3 participants