Skip to content

Commit a470d1c

Browse files
committed
Merge branch 'fix-chat-error' into memo
2 parents 12c562e + 489e50c commit a470d1c

File tree

4 files changed

+1
-10
lines changed

4 files changed

+1
-10
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ jobs:
8686
- uses: actions/setup-node@v3
8787
- uses: oven-sh/setup-bun@v2
8888
- run: make prepare-deploy-web
89-
- run: test `ls web/out | wc -l` != 0
89+
- run: test `ls web/.next | wc -l` != 0
9090

9191
deploy-test-server:
9292
name: Deploy Test (server)

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/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)