mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 06:28:51 +00:00
fix(resources/calls): fix typo
This commit is contained in:
1 parent
3446de488e
commit
44a0d941b9
2 files changed
+3
-4
No files matched your search
@@ -5,7 +5,7 @@ import { callLogger } from './calls.utils';
|
||||
|
||||
onNet(CallEvents.INITIALIZE_CALL, (receivingNumber: string) => {
|
||||
const src = getSource();
|
||||
CallService.handleInititializeCall(src, receivingNumber).catch((e) =>
|
||||
CallService.handleInitializeCall(src, receivingNumber).catch((e) =>
|
||||
callLogger.error(
|
||||
`Error occured in intialize (${receivingNumber}) call event, Error: ${e.message}`,
|
||||
),
|
||||
|
||||
@@ -4,7 +4,6 @@ import CallsDB, { CallsRepo } from './calls.db';
|
||||
import { v4 as uuidv4 } from 'uuid';
|
||||
import PlayerService from '../players/player.service';
|
||||
import { callLogger } from './calls.utils';
|
||||
import { ContactEvents } from '../../../typings/contact';
|
||||
|
||||
class CallsService {
|
||||
private callMap: Collection<string, CallHistoryItem>;
|
||||
@@ -30,7 +29,7 @@ class CallsService {
|
||||
return obj;
|
||||
}
|
||||
|
||||
async handleInititializeCall(src: number, receivingNumber: string): Promise<void> {
|
||||
async handleInitializeCall(src: number, receivingNumber: string): Promise<void> {
|
||||
// Create initial call data
|
||||
const transmittingPlayer = PlayerService.getPlayer(src);
|
||||
const transmitterNumber = transmittingPlayer.getPhoneNumber();
|
||||
@@ -172,7 +171,7 @@ class CallsService {
|
||||
emitNet(CallEvents.SEND_HANGUP_ANIM, currentCall.transmitterSource);
|
||||
}
|
||||
|
||||
await this.callsDB.updateCall(currentCall, true, endCallTimeUnix);
|
||||
await this.callsDB.updateCall(currentCall, true, endCallTimeUnix);
|
||||
|
||||
// Clear from memory
|
||||
this.callMap.delete(transmitterNumber);
|
||||
|
||||
Reference in new issue
Block a user