mirror of
https://github.com/PretendoNetwork/BOSS.git
synced 2026-08-23 01:24:07 -05:00
Wrong task ID length check
This commit is contained in:
@@ -22,7 +22,7 @@ export async function listFiles(request: ListFilesRequest): Promise<ListFilesRes
|
||||
throw new ServerError(Status.INVALID_ARGUMENT, 'Missing task ID');
|
||||
}
|
||||
|
||||
if (taskID.length < 8) {
|
||||
if (taskID.length > 8) {
|
||||
throw new ServerError(Status.INVALID_ARGUMENT, 'Task ID must be 1-8 characters');
|
||||
}
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ export async function registerTask(request: RegisterTaskRequest, context: CallCo
|
||||
throw new ServerError(Status.INVALID_ARGUMENT, 'Missing task ID');
|
||||
}
|
||||
|
||||
if (taskID.length < 8) {
|
||||
if (taskID.length > 8) {
|
||||
throw new ServerError(Status.INVALID_ARGUMENT, 'Task ID must be 1-8 characters');
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ export async function uploadFile(request: UploadFileRequest, context: CallContex
|
||||
throw new ServerError(Status.INVALID_ARGUMENT, 'Missing task ID');
|
||||
}
|
||||
|
||||
if (taskID.length < 8) {
|
||||
if (taskID.length > 8) {
|
||||
throw new ServerError(Status.INVALID_ARGUMENT, 'Task ID must be 1-8 characters');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user