Skip to content

Commit 47b9104

Browse files
committed
migrate server
1 parent 82cbd1b commit 47b9104

File tree

21 files changed

+43
-43
lines changed

21 files changed

+43
-43
lines changed

server/src/database/chat.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { Err, Ok, type Result } from "../common/lib/result";
2-
import type { UserID } from "../common/types";
1+
import { Err, Ok, type Result } from "common/lib/result";
2+
import type { UserID } from "common/types";
33
import type {
44
DMOverview,
55
DMRoom,
@@ -11,7 +11,7 @@ import type {
1111
ShareRoomID,
1212
SharedRoom,
1313
SharedRoomOverview,
14-
} from "../common/types";
14+
} from "common/types";
1515
import { prisma } from "./client";
1616
import { getRelation } from "./matches";
1717
import { getMatchedUser } from "./requests";

server/src/database/courses.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Course, Day, UserID } from "../common/types";
1+
import type { Course, Day, UserID } from "common/types";
22
import { prisma } from "./client";
33

44
export async function getCourseByCourseId(

server/src/database/enrollments.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Course, CourseID, UserID } from "../common/types";
1+
import type { Course, CourseID, UserID } from "common/types";
22
import { prisma } from "./client";
33
import { getCoursesByUserId } from "./courses";
44

server/src/database/interest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { InterestSubject, UserID } from "../common/types";
1+
import type { InterestSubject, UserID } from "common/types";
22
import { prisma } from "./client";
33

44
export async function all(): Promise<InterestSubject[]> {

server/src/database/matches.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { Err, Ok, type Result } from "../common/lib/result";
2-
import type { Relationship, UserID } from "../common/types";
1+
import { Err, Ok, type Result } from "common/lib/result";
2+
import type { Relationship, UserID } from "common/types";
33
import asyncMap from "../lib/async/map";
44
import { prisma } from "./client";
55

server/src/database/picture.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { Err, Ok, type Result } from "../common/lib/result";
2-
import type { GUID } from "../common/types";
1+
import { Err, Ok, type Result } from "common/lib/result";
2+
import type { GUID } from "common/types";
33
import { prisma } from "./client";
44

55
/**

server/src/database/requests.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { Err, Ok, type Result } from "../common/lib/result";
2-
import type { Relationship, User, UserID } from "../common/types";
1+
import { Err, Ok, type Result } from "common/lib/result";
2+
import type { Relationship, User, UserID } from "common/types";
33
import { prisma } from "./client";
44

55
// マッチリクエストの送信

server/src/database/users.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { Err, Ok, type Result } from "../common/lib/result";
2-
import type { GUID, UpdateUser, User, UserID } from "../common/types";
1+
import { Err, Ok, type Result } from "common/lib/result";
2+
import type { GUID, UpdateUser, User, UserID } from "common/types";
33
import { prisma } from "./client";
44

55
// ユーザーの作成

server/src/firebase/auth/db.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { PrismaClient } from "@prisma/client";
2+
import { Err, Ok, type Result } from "common/lib/result";
3+
import type { IDToken, UserID } from "common/types";
24
import type { Request } from "express";
3-
import { Err, Ok, type Result } from "../../common/lib/result";
4-
import type { IDToken, UserID } from "../../common/types";
55
import { getGUID, getGUIDFromToken } from "./lib";
66

77
import { prisma } from "../../database/client";

server/src/firebase/auth/lib.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
import { Err, Ok, type Result } from "common/lib/result";
2+
import type { GUID, IDToken } from "common/types";
13
import type { Request } from "express";
24
import * as admin from "firebase-admin/auth";
3-
import { Err, Ok, type Result } from "../../common/lib/result";
4-
import type { GUID, IDToken } from "../../common/types";
55
import { app } from "../init";
66

77
const auth = admin.getAuth(app);

0 commit comments

Comments
 (0)