mirror of
https://github.com/PretendoNetwork/BOSS.git
synced 2026-08-24 18:14:10 -05:00
fix: fix bugs with GRPC methods
This commit is contained in:
@@ -148,7 +148,7 @@ export function getTaskFileByDataID(dataID: bigint): Promise<HydratedFileDocumen
|
||||
|
||||
return File.findOne<HydratedFileDocument>({
|
||||
deleted: false,
|
||||
data_id: dataID
|
||||
data_id: Number(dataID)
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user