Skip to content

Commit

Permalink
improve asset route name
Browse files Browse the repository at this point in the history
  • Loading branch information
buckhalt committed Mar 26, 2024
1 parent a3be68e commit 2ab8efd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hooks/useProtocolImport.tsx
Expand Up @@ -37,7 +37,7 @@ export const useProtocolImport = () => {
const { mutateAsync: getProtocolExists } =
api.protocol.get.byHash.useMutation();

const { mutateAsync: getNewAssetIds } = api.asset.get.useMutation();
const { mutateAsync: getNewAssetIds } = api.asset.checkExisting.useMutation();

/**
* This is the main job processing function. Takes a file, and handles all
Expand Down
2 changes: 1 addition & 1 deletion server/routers/asset.ts
Expand Up @@ -4,7 +4,7 @@ import { protectedProcedure, router } from '~/server/trpc';
import { z } from 'zod';

export const assetRouter = router({
get: protectedProcedure
checkExisting: protectedProcedure
.input(z.array(z.string()))
.mutation(async ({ input: assetIds }) => {
const assets = await prisma.asset.findMany({
Expand Down

0 comments on commit 2ab8efd

Please sign in to comment.