Skip to content

Commit

Permalink
Fixed getSchedule file organization
Browse files Browse the repository at this point in the history
  • Loading branch information
bjsilva1 committed May 24, 2024
1 parent 5e7e252 commit 79982dc
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"build": "turbo build",
"clean": "git clean -xdf node_modules",
"clean:workspaces": "turbo clean",
"db:push": "pnpm -F db push",
"db:push": "pnpm -F db db:push",
"db:studio": "pnpm --filter db run db:studio",
"db:dump": "pg_dump -h icssc.cf3yrjegcna8.us-east-1.rds.amazonaws.com -U zotmeal_prod -W -O -x zotmeal > ./docker/db/zotmeal.sql",
"dev": "turbo dev --parallel --concurrency=13",
Expand Down
6 changes: 3 additions & 3 deletions packages/api/src/schedules/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from "./getWeekInfo";
export * from "./schedule";
export * from "./updateDaily";
export * from "./services/getWeekInfo";
export * from "./services/schedule";
export * from "./services/updateDaily";
2 changes: 1 addition & 1 deletion packages/api/src/schedules/procedures/getSchedule.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { TRPCError } from "@trpc/server";

import { publicProcedure } from "../../trpc";
import { getSchedule, GetScheduleSchema } from "../schedule";
import { getSchedule, GetScheduleSchema } from "../services/schedule";

// import { getSchedule, GetScheduleSchema } from

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import { z } from "zod";
import type { Drizzle } from "@zotmeal/db";
import { RestaurantSchema } from "@zotmeal/db";
import { DateRegex } from "@zotmeal/validators";
import { scrapeCampusDishEvents } from "../events";
import { scrapeCampusDishEvents } from "../../events";

import type { UpdateDailyParams } from "./updateDaily";
import { logger } from "../../logger";
import { logger } from "../../../logger";
import { updateDaily } from "./updateDaily";

export const GetWeekInfoSchema = z.object({
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import { RestaurantSchema } from "@zotmeal/db";
import { periodNames } from "@zotmeal/utils";
import { DateRegex } from "@zotmeal/validators";

import type { GetMenuParams } from "../menus";
import { logger } from "../../logger";
import { getCampusDish, parseCampusDish } from "../menus";
import type { GetMenuParams } from "../../menus";
import { logger } from "../../../logger";
import { getCampusDish, parseCampusDish } from "../../menus";

export const UpdateDailySchema = z.object({
date: DateRegex,
Expand Down

0 comments on commit 79982dc

Please sign in to comment.