fix: acme.cal.local crashes due to missing requestedSlug in seed (#14592)
This commit is contained in:
@@ -213,6 +213,9 @@ function getTeamWithoutMetadata<T extends Pick<Team, "metadata">>(team: T) {
|
||||
const teamMetadata = teamMetadataSchema.parse(metadata);
|
||||
return {
|
||||
...rest,
|
||||
requestedSlug: teamMetadata?.requestedSlug,
|
||||
// add requestedSlug if available.
|
||||
...(typeof teamMetadata?.requestedSlug !== "undefined"
|
||||
? { requestedSlug: teamMetadata?.requestedSlug }
|
||||
: {}),
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user