mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 20:13:49 +00:00
Format: format codebase to prettier schema
This commit is contained in:
@@ -155,8 +155,10 @@ SPARKPOST_SENDER_ADDRESS=" > .env
|
|||||||
- `SESSION_MAX_AGE` is the maximum age of the session cookie in milliseconds.
|
- `SESSION_MAX_AGE` is the maximum age of the session cookie in milliseconds.
|
||||||
- You can set this to `604800000` (1 week).
|
- You can set this to `604800000` (1 week).
|
||||||
- `POSTGRES_PRISMA_URL`is a pooled connection string for your Neon Postgres database.
|
- `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.
|
- `POSTGRES_URL_NON_POOLING` is a non-pooled connection string for your Neon Postgres
|
||||||
- `SHADOW_DATABASE_URL` is a connection string for a secondary database used for migrations to detect schema drift.
|
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)
|
- You can create a free account [here](https://neon.tech)
|
||||||
- Consult the [docs](https://neon.tech/docs/guides/prisma) for more information.
|
- 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
|
- `MAPBOX_ACCESS_TOKEN` and `NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN` are the access tokens for
|
||||||
|
|||||||
@@ -28,7 +28,12 @@ const getBreweryPosts = async (
|
|||||||
await DBClient.instance.breweryPost.findMany({
|
await DBClient.instance.breweryPost.findMany({
|
||||||
select: {
|
select: {
|
||||||
location: {
|
location: {
|
||||||
select: { coordinates: true, city: true, country: true, stateOrProvince: true },
|
select: {
|
||||||
|
coordinates: true,
|
||||||
|
city: true,
|
||||||
|
country: true,
|
||||||
|
stateOrProvince: true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
id: true,
|
id: true,
|
||||||
name: true,
|
name: true,
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { z } from "zod";
|
import { z } from 'zod';
|
||||||
|
|
||||||
const BreweryPostMapQueryResult = z.object({
|
const BreweryPostMapQueryResult = z.object({
|
||||||
location: z.object({
|
location: z.object({
|
||||||
|
|||||||
Reference in New Issue
Block a user