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

Fix/event type clone #5659

Merged
merged 11 commits into from
Nov 23, 2022
Merged

Fix/event type clone #5659

merged 11 commits into from
Nov 23, 2022

Conversation

alannnc
Copy link
Contributor

@alannnc alannnc commented Nov 23, 2022

What does this PR do?

Follow up from PR #5540

When duplicating event type, input locations shouldn't be override by default location in event type create trpc.

Fixes #5504

Environment: Staging(main branch) / Production

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I haven't added tests that prove my fix is effective or that my feature works

@vercel
Copy link

vercel bot commented Nov 23, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
cal ✅ Ready (Inspect) Visit Preview Nov 23, 2022 at 9:39PM (UTC)

@@ -360,7 +360,8 @@ export const eventTypesRouter = router({
};

const appKeys = await getAppKeysFromSlug("daily-video");
if (typeof appKeys.api_key === "string") {
// Shouldn't override input locations
if (rest.locations?.length === 0 && typeof appKeys.api_key === "string") {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

When creating new locations are empty array []

@alannnc alannnc requested a review from a team November 23, 2022 21:25
@alannnc alannnc added the ♻️ autoupdate tells kodiak to keep this branch up-to-date label Nov 23, 2022
@alannnc alannnc enabled auto-merge (squash) November 23, 2022 21:26
Copy link
Contributor

@leog leog left a comment

Choose a reason for hiding this comment

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

LGTM

@alannnc alannnc merged commit 1c2c6a6 into main Nov 23, 2022
@alannnc alannnc deleted the fix/event-type-clone branch November 23, 2022 21:36
@PeerRich PeerRich added the core area: core, team members only label Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
♻️ autoupdate tells kodiak to keep this branch up-to-date core area: core, team members only
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CAL-364] Event Type clone defaults location to Cal Video
4 participants