Skip to content

Commit

Permalink
modify: 関数名変更
Browse files Browse the repository at this point in the history
  • Loading branch information
kensiiwasaki committed Nov 23, 2023
1 parent d88fb5c commit 2932766
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/routes/List.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { PrismaClient } from "@prisma/client";
import { json } from "@remix-run/node";
import type { ActionFunction, LoaderFunction } from "@remix-run/node";
import { useFetcher, useLoaderData } from "@remix-run/react";
import { findAllTask } from "~/datasource/prisma/task";
import { findUserAllTask } from "~/datasource/prisma/task";

const prisma = new PrismaClient();

Expand All @@ -20,7 +20,7 @@ export const loader: LoaderFunction = (args) => {
return rootAuthLoader(args, async ({ request }) => {
const { userId } = request.auth;

const tasks = userId ? await findAllTask(userId) : [];
const tasks = userId ? await findUserAllTask(userId) : [];

return json({ tasks });
});
Expand Down

0 comments on commit 2932766

Please sign in to comment.