Skip to content

Commit 489e50c

Browse files
committed
delete console
1 parent cb0192c commit 489e50c

File tree

4 files changed

+0
-10
lines changed

4 files changed

+0
-10
lines changed

web/api/chat/chat.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,7 @@ export async function getDM(friendId: UserID): Promise<
8989
thumbnail: string;
9090
}
9191
> {
92-
console.log("リクエスト先", endpoints.dmWith(friendId));
9392
const res = await credFetch("GET", endpoints.dmWith(friendId));
94-
console.log("いい");
9593
if (res.status === 401) throw new ErrUnauthorized();
9694
if (res.status !== 200)
9795
throw new Error(

web/app/chat/[id]/page.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { RoomWindow } from "~/components/chat/RoomWindow";
55

66
export default function Page({ params }: { params: { id: string } }) {
77
const id = Number.parseInt(params.id);
8-
console.log("IDだよ", id);
98
const [room, setRoom] = useState<
109
| ({
1110
id: number;

web/components/chat/RoomList.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ export function RoomList(props: RoomListProps) {
1313
const { roomsData } = props;
1414
const router = useRouter();
1515
const navigateToRoom = (room: Extract<RoomOverview, { isDM: true }>) => {
16-
console.log(room.friendId);
1716
router.push(`/chat/${room.friendId}`);
1817
};
1918

web/firebase/auth/lib.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ const auth = getAuth(app);
99

1010
// 認証状態の完了を待機するためのPromiseを作成
1111
const token = new Promise<string>((resolve) => {
12-
console.log("えうう");
1312
onAuthStateChanged(auth, async (u: User | null) => {
14-
console.log("ユーザ", u);
1513
if (u != null) {
1614
resolve(await u.getIdToken());
1715
}
@@ -20,7 +18,6 @@ const token = new Promise<string>((resolve) => {
2018

2119
export async function getIdToken(): Promise<IDToken> {
2220
const toke = await token;
23-
console.log("トーク", toke);
2421
return toke;
2522
}
2623

@@ -37,17 +34,14 @@ export async function credFetch(
3734
path: string,
3835
body?: unknown,
3936
): Promise<Response> {
40-
console.log("こんにちは");
4137
let idToken = await getIdToken();
42-
console.log("とくん", idToken);
4338
const init: RequestInit = { method };
4439
if (body) {
4540
init.body = JSON.stringify(body);
4641
init.headers = {
4742
"Content-Type": "application/json",
4843
};
4944
}
50-
console.log(`${path}?token=${idToken}`);
5145
let res = await fetch(`${path}?token=${idToken}`, init);
5246

5347
if (res.status === 401) {

0 commit comments

Comments
 (0)