Skip to content

Commit

Permalink
Merge branch 'refs/heads/main' into feature/remote-app
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjozork committed May 11, 2024
2 parents dc1981c + 00bdec9 commit e6d613e
Show file tree
Hide file tree
Showing 4 changed files with 211 additions and 24 deletions.
4 changes: 1 addition & 3 deletions apps/server/src/interfaces/mcdu.gateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ export class McduGateway implements OnGatewayInit, OnGatewayConnection {
async afterInit(server: Server) {
this.server = server;
this.logger.log('Remote MCDU websocket initialised');
this.logger.log(
`Initialised on http://${await this.networkService.getLocalIp(true)}:${this.serverConf.port}${server.path}`,
);
this.logger.log(`Initialised websocket gateway on ws://${await this.networkService.getLocalIp(true)}:${this.serverConf.port}${server.path}`);
}

handleConnection(client: WebSocket) {
Expand Down
3 changes: 2 additions & 1 deletion apps/server/src/utilities/file.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export class FileService {

async getNumberOfPdfPages(Directory: string, fileName: string): Promise<number> {
const retrievedFile = await this.getFile(Directory, fileName);
return getDocument({ data: retrievedFile }).promise.then((document) => document.numPages);
return getDocument({ data: retrievedFile, isEvalSupported: false }).promise.then((document) => document.numPages);
}

/**
Expand Down Expand Up @@ -160,6 +160,7 @@ export class FileService {
cMapUrl: CMAP_URL,
cMapPacked: CMAP_PACKED,
standardFontDataUrl: STANDARD_FONT_DATA_URL,
isEvalSupported: false,
}).promise;

this.pdfCache.set(conversionFilePath, pdfDocument);
Expand Down
224 changes: 206 additions & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e6d613e

Please sign in to comment.