chore: clean up type errors and warnings
This commit is contained in:
@@ -195,7 +195,7 @@ export const cardRouter = createTRPCRouter({
|
||||
input.cardPublicId,
|
||||
);
|
||||
|
||||
if (!card || !card?.list?.id) return;
|
||||
if (!card ?? !card?.list?.id) return;
|
||||
|
||||
const deletedAt = new Date().toISOString();
|
||||
|
||||
|
||||
@@ -105,5 +105,7 @@ export const listRouter = createTRPCRouter({
|
||||
{ name: input.name },
|
||||
{ listPublicId: input.listPublicId },
|
||||
);
|
||||
|
||||
return result;
|
||||
}),
|
||||
});
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { z } from "zod";
|
||||
import { generateUID } from "~/utils/generateUID";
|
||||
|
||||
import { createTRPCRouter, protectedProcedure } from "~/server/api/trpc";
|
||||
import * as workspaceRepo from "~/server/db/repository/workspace.repo";
|
||||
|
||||
Reference in New Issue
Block a user