Skip to content

Commit f5d71d4

Browse files
committed
chore: address PR comments
1 parent bd34347 commit f5d71d4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ts/session/apis/file_server_api/FileServerApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ export const getFileInfoFromFileServer = async (
222222
stringifiedBody: null,
223223
endpoint: `${POST_GET_FILE_ENDPOINT}/${fileId}/info`,
224224
method: 'GET',
225-
timeoutMs: 10 * DURATION.SECONDS, // longer time for file upload
225+
timeoutMs: 10 * DURATION.SECONDS,
226226
headers: {},
227227
});
228228

ts/webworker/workers/node/image_processor/image_processor.worker.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { isFinite, isNumber } from 'lodash';
1+
import { isEmpty, isFinite, isNumber } from 'lodash';
22
import sharp from 'sharp';
33
import type { ImageProcessorWorkerActions } from './image_processor';
44
/* eslint-disable no-console */
55
/* eslint-disable strict */
66

7-
const DEBUG_IMAGE_PROCESSOR_WORKER = true;
7+
const DEBUG_IMAGE_PROCESSOR_WORKER = !isEmpty(process.env.DEBUG_IMAGE_PROCESSOR_WORKER);
88

99
function logIfOn(...args: Array<any>) {
1010
if (DEBUG_IMAGE_PROCESSOR_WORKER) {

0 commit comments

Comments
 (0)