From 39c310f2964632bb2fa0757a5c5188720c7823bf Mon Sep 17 00:00:00 2001 From: Aaron William Po Date: Tue, 16 May 2023 23:49:44 -0400 Subject: [PATCH] Format: format codebase to prettier schema --- README.md | 6 ++++-- src/pages/api/breweries/map/index.ts | 7 ++++++- .../BreweryPost/types/BreweryPostMapQueryResult.ts | 2 +- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 4255c2f..949c5ee 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/src/pages/api/breweries/map/index.ts b/src/pages/api/breweries/map/index.ts index 5a75e0e..7d9fdd8 100644 --- a/src/pages/api/breweries/map/index.ts +++ b/src/pages/api/breweries/map/index.ts @@ -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, diff --git a/src/services/BreweryPost/types/BreweryPostMapQueryResult.ts b/src/services/BreweryPost/types/BreweryPostMapQueryResult.ts index e0c9cf5..0ef26fe 100644 --- a/src/services/BreweryPost/types/BreweryPostMapQueryResult.ts +++ b/src/services/BreweryPost/types/BreweryPostMapQueryResult.ts @@ -1,4 +1,4 @@ -import { z } from "zod"; +import { z } from 'zod'; const BreweryPostMapQueryResult = z.object({ location: z.object({