Skip to content

Commit

Permalink
chore: change utils folder name to services
Browse files Browse the repository at this point in the history
  • Loading branch information
cuixiaorui committed Jul 1, 2024
1 parent de421d5 commit faafdb0
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/api-hub/src/db/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { drizzle } from "drizzle-orm/postgres-js";
import postgres from "postgres";

import { schemas, SchemaType } from "@earthworm/schema";
import { logger } from "../utils/logger";
import { logger } from "../services/logger";

export type DbType = PostgresJsDatabase<SchemaType>;

Expand Down
2 changes: 1 addition & 1 deletion packages/api-hub/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import "./utils/env";
import "./services/env";

import { join } from "path";

Expand Down
2 changes: 1 addition & 1 deletion packages/api-hub/src/routes/course-pack/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type {
UpdateCoursePackBody,
UpdateCoursePackParams,
} from "./schema";
import { logger } from "../../utils/logger";
import { logger } from "../../services/logger";
import { createCoursePack, deleteCoursePack, updateCoursePack } from "./service";

export const createCoursePackHandler: RouteHandler<{
Expand Down
2 changes: 1 addition & 1 deletion packages/api-hub/src/routes/course-pack/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
} from "@earthworm/schema";
import type { CreateCoursePack, Statement, UpdateCoursePackBody } from "./schema";
import { db } from "../../db";
import { logger } from "../../utils/logger";
import { logger } from "../../services/logger";

export async function createCoursePack(coursePackInfo: CreateCoursePack) {
const result = await db.transaction(async (tx) => {
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/api-hub/vitest.setup.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import "./src/utils/env";
import "./src/services/env";

import { afterAll, beforeAll } from "vitest";

Expand Down

0 comments on commit faafdb0

Please sign in to comment.