Skip to content

Commit

Permalink
Merge pull request #9 from jhs88/custom-endpoint
Browse files Browse the repository at this point in the history
fix databaseclient
  • Loading branch information
jhs88 authored Aug 24, 2024
2 parents 2ad3a60 + c48159a commit fb50c7d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/routes/$slug.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { json, useLoaderData } from "@remix-run/react";
import { useTina } from "tinacms/dist/react";
import { TinaMarkdown } from "tinacms/dist/rich-text";

import { client } from "tina/__generated__/client";
import client from "tina/__generated__/databaseClient";

export const loader = async ({ params }: LoaderFunctionArgs) => {
const { data, query, variables } = await client.queries.page({
Expand Down
2 changes: 1 addition & 1 deletion app/routes/_index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { json, useLoaderData } from "@remix-run/react";
import { useTina } from "tinacms/dist/react";
import { TinaMarkdown } from "tinacms/dist/rich-text";

import { client } from "tina/__generated__/client";
import client from "tina/__generated__/databaseClient";

export const loader = async (args: LoaderFunctionArgs) => {
const { data, query, variables } = await client.queries.page({
Expand Down
2 changes: 1 addition & 1 deletion app/routes/posts.$slug.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { LoaderFunctionArgs } from "@remix-run/node";
import { json, useLoaderData } from "@remix-run/react";
import { useTina } from "tinacms/dist/react";

import { client } from "tina/__generated__/client";
import client from "tina/__generated__/databaseClient";

export const loader = async ({ params }: LoaderFunctionArgs) => {
const { data, query, variables } = await client.queries.post({
Expand Down
2 changes: 1 addition & 1 deletion app/routes/posts._index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { LoaderFunctionArgs } from "@remix-run/node";
import { json, Link, useLoaderData } from "@remix-run/react";
import { useTina } from "tinacms/dist/react";

import { client } from "tina/__generated__/client";
import client from "tina/__generated__/databaseClient";

export const loader = async ({ params }: LoaderFunctionArgs) => {
const { data, query, variables } = await client.queries.postConnection();
Expand Down

0 comments on commit fb50c7d

Please sign in to comment.