chore: fix type errors
This commit is contained in:
@@ -71,7 +71,7 @@ export const cardRouter = createTRPCRouter({
|
|||||||
|
|
||||||
if (!labels?.length)
|
if (!labels?.length)
|
||||||
throw new TRPCError({
|
throw new TRPCError({
|
||||||
message: `Labels with public IDs ${input.labelPublicIds} not found`,
|
message: `Labels with public IDs (${input.labelPublicIds.join(", ")}) not found`,
|
||||||
code: "NOT_FOUND",
|
code: "NOT_FOUND",
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -91,7 +91,7 @@ export const cardRouter = createTRPCRouter({
|
|||||||
|
|
||||||
if (!members?.length)
|
if (!members?.length)
|
||||||
throw new TRPCError({
|
throw new TRPCError({
|
||||||
message: `Members with public IDs ${input.memberPublicIds} not found`,
|
message: `Members with public IDs (${input.memberPublicIds.join(", ")}) not found`,
|
||||||
code: "NOT_FOUND",
|
code: "NOT_FOUND",
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -303,7 +303,7 @@ export const cardRouter = createTRPCRouter({
|
|||||||
input.cardId,
|
input.cardId,
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!card || !card.list)
|
if (!card?.list)
|
||||||
throw new TRPCError({
|
throw new TRPCError({
|
||||||
message: `Card with public ID ${input.cardId} not found`,
|
message: `Card with public ID ${input.cardId} not found`,
|
||||||
code: "NOT_FOUND",
|
code: "NOT_FOUND",
|
||||||
|
|||||||
Reference in New Issue
Block a user