Skip to content

Commit

Permalink
Add displayName to users seed (#209)
Browse files Browse the repository at this point in the history
# Add displayName to users seed

## ♻️ Current situation & Problem
Currently, `displayName` is not seeded.


## ⚙️ Release Notes 
* Add displayName to users seed

`displayName` was already in the seed data, but it wasn't forwarded
because of schema validation.


### Code of Conduct & Contributing Guidelines 

By submitting creating this pull request, you agree to follow our [Code
of
Conduct](https://github.com/StanfordBDHG/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/StanfordBDHG/.github/blob/main/CONTRIBUTING.md):
- [x] I agree to follow the [Code of
Conduct](https://github.com/StanfordBDHG/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/StanfordBDHG/.github/blob/main/CONTRIBUTING.md).

Co-authored-by: Paul <[email protected]>
  • Loading branch information
arkadiuszbachorski and pauljohanneskraft authored Jan 23, 2025
1 parent bf0a83c commit 9ccea8c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions functions/models/src/functions/customSeed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export const userSeedingOptionsSchema = z.object({
uid: optionalish(z.string()),
email: z.string(),
password: z.string(),
displayName: z.string(),
}),
user: optionalish(z.lazy(() => userConverter.value.schema)),
collections: optionalish(z.record(z.record(z.any()))),
Expand Down

0 comments on commit 9ccea8c

Please sign in to comment.