Format: format codebase to prettier schema

This commit is contained in:
Aaron William Po
2023-05-16 23:49:44 -04:00
parent 0b0c0e6821
commit 39c310f296
3 changed files with 11 additions and 4 deletions

View File

@@ -155,8 +155,10 @@ SPARKPOST_SENDER_ADDRESS=" > .env
- `SESSION_MAX_AGE` is the maximum age of the session cookie in milliseconds.
- You can set this to `604800000` (1 week).
- `POSTGRES_PRISMA_URL`is a pooled connection string for your Neon Postgres database.
- `POSTGRES_URL_NON_POOLING` is a non-pooled connection string for your Neon Postgres database used for migrations.
- `SHADOW_DATABASE_URL` is a connection string for a secondary database used for migrations to detect schema drift.
- `POSTGRES_URL_NON_POOLING` is a non-pooled connection string for your Neon Postgres
database used for migrations.
- `SHADOW_DATABASE_URL` is a connection string for a secondary database used for
migrations to detect schema drift.
- You can create a free account [here](https://neon.tech)
- Consult the [docs](https://neon.tech/docs/guides/prisma) for more information.
- `MAPBOX_ACCESS_TOKEN` and `NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN` are the access tokens for

View File

@@ -28,7 +28,12 @@ const getBreweryPosts = async (
await DBClient.instance.breweryPost.findMany({
select: {
location: {
select: { coordinates: true, city: true, country: true, stateOrProvince: true },
select: {
coordinates: true,
city: true,
country: true,
stateOrProvince: true,
},
},
id: true,
name: true,

View File

@@ -1,4 +1,4 @@
import { z } from "zod";
import { z } from 'zod';
const BreweryPostMapQueryResult = z.object({
location: z.object({