Skip to content

Commit

Permalink
fix(resources): Silence the TS compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
TasoOneAsia committed Jun 8, 2021
1 parent 42b2970 commit 54d456c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion resources/server/players/player.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ on('playerDropped', () => {
const src = getSource();
// Get identifier for player to remove
try {
PlayerService.handleUnloadPlayerEvent(src, true);
PlayerService.handleUnloadPlayerEvent(src);
} catch (e) {
playerLogger.debug(`${src} failed to unload, likely was never loaded in the first place.`);
}
Expand Down
14 changes: 7 additions & 7 deletions resources/utils/messages.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import apps from './apps';

export function sendMessage(app: string, method: string, data: any): void {
return SendNuiMessage(
JSON.stringify({
app,
method,
data,
}),
);
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
return SendNUIMessage({
app,
method,
data,
});
}

export function sendTwitterMessage(method: string, data: any = {}): void {
Expand Down

0 comments on commit 54d456c

Please sign in to comment.