From b71e13a8054b686c731a58de8aa8b78e97c13bff Mon Sep 17 00:00:00 2001 From: mrjvs Date: Thu, 4 Sep 2025 01:41:48 +0200 Subject: [PATCH] fix: fix bugs with GRPC methods --- src/database.ts | 2 +- src/services/grpc/boss/upload-file.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/database.ts b/src/database.ts index f0cdec8..da89672 100644 --- a/src/database.ts +++ b/src/database.ts @@ -148,7 +148,7 @@ export function getTaskFileByDataID(dataID: bigint): Promise({ deleted: false, - data_id: dataID + data_id: Number(dataID) }); } diff --git a/src/services/grpc/boss/upload-file.ts b/src/services/grpc/boss/upload-file.ts index 4b8ae92..c9f7f37 100644 --- a/src/services/grpc/boss/upload-file.ts +++ b/src/services/grpc/boss/upload-file.ts @@ -131,7 +131,7 @@ export async function uploadFile(request: UploadFileRequest, context: CallContex } file = await File.create({ - task_id: taskID, + task_id: taskID.slice(0, 7), boss_app_id: bossAppID, supported_countries: supportedCountries, supported_languages: supportedLanguages,