chore: upgrade to express 5

This commit is contained in:
William Oldham 2025-06-11 23:09:39 +01:00
parent 37fd4ae8b1
commit b7b9dd6cbd
3 changed files with 693 additions and 372 deletions

1061
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -23,7 +23,7 @@
"colors": "^1.4.0",
"dicer": "^0.3.1",
"dotenv": "^16.4.7",
"express": "^4.21.2",
"express": "^5.1.0",
"express-subdomain": "^1.0.6",
"fs-extra": "^11.2.0",
"moment": "^2.30.1",

View File

@ -46,7 +46,7 @@ export async function uploadFile(request: UploadFileRequest, context: CallContex
throw new ServerError(Status.INVALID_ARGUMENT, 'BOSS app ID must only contain letters and numbers');
}
if (!await getTask(bossAppID, taskID)) {
if (!(await getTask(bossAppID, taskID))) {
throw new ServerError(Status.NOT_FOUND, `Task ${taskID} does not exist for BOSS app ${bossAppID}`);
}