Skip to content

Commit

Permalink
fix: few code smell
Browse files Browse the repository at this point in the history
  • Loading branch information
muke1908 committed Sep 19, 2024
1 parent 1afa6d7 commit 7f398b3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions backend/api/messaging/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import express, { Request, Response } from 'express';

import db from '../../db';
import { PUBLIC_KEY_COLLECTION } from '../../db/const';
import uploadImage from '../../external/uploadImage';
import asyncHandler from '../../middleware/asyncHandler';
import { SOCKET_TOPIC, socketEmit } from '../../socket.io';
import getClientInstance from '../../socket.io/clients';
Expand Down Expand Up @@ -84,7 +83,6 @@ router.get(
return res.sendStatus(404);
}
const receiverID = clients.getReceiverIDBySenderID(userId as string, channel as string);
console.log(receiverID)
const data = await db.findOneFromDB<GetPublicKeyResponse>({ channel, user: receiverID }, PUBLIC_KEY_COLLECTION);
return res.send(data || {
publicKey: null,
Expand Down
1 change: 0 additions & 1 deletion service/src/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,6 @@ class ChatE2EE implements IChatE2EE {
this.call?.endCall();
this.call = null;
this.onCallRemovedHandler?.();
return;
}

public onCallAdded(cb: (call: E2ECall) => void): void {
Expand Down

0 comments on commit 7f398b3

Please sign in to comment.