Skip to content

Commit

Permalink
✨ Set temporary ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
lcpnine committed Jan 25, 2024
1 parent f9a089d commit 6dad6d3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/server/src/resolvers/mandalaChart.resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ export class MandalaChartResolver {
@Arg('input') input: CreateMandalaChartInput,
@Ctx() ctx: MyContext
): Promise<typeof CreateMandalaChartResponse> {
const userId = ctx.req.userId
// @ts-ignore
const userId: string | null = ctx.req.userId
if (!userId) {
return { errorType: CreateMandalaChartFailureType.INVALID_INPUT }
}
Expand All @@ -53,7 +54,8 @@ export class MandalaChartResolver {
@Arg('input') input: UpdateMandalaChartInput,
@Ctx() ctx: MyContext
): Promise<typeof UpdateMandalaChartResponse> {
const userId = ctx.req.userId
// @ts-ignore
const userId: string | null = ctx.req.userId

if (!isMandalaChartInputValid(input.centerCell, input.surroundingCells)) {
return { errorType: UpdateMandalaChartFailureType.INVALID_INPUT }
Expand Down Expand Up @@ -82,7 +84,8 @@ export class MandalaChartResolver {
@Arg('input') input: DeleteMandalaChartInput,
@Ctx() ctx: MyContext
): Promise<typeof DeleteMandalaChartResponse> {
const userId = ctx.req.userId
// @ts-ignore
const userId: string | null = ctx.req.userId
const candidateChart = await MandalaChartModel.findById(
input.mandalaChartId
)
Expand Down

0 comments on commit 6dad6d3

Please sign in to comment.