mirror of
https://github.com/immich-app/immich.git
synced 2026-03-01 10:08:42 +03:00
fix(deps): update typescript-projects (#20879)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Zack Pollard <zackpollard@ymail.com>
This commit is contained in:
@@ -182,7 +182,8 @@ export class MachineLearningRepository {
|
||||
formData.append('entries', JSON.stringify(config));
|
||||
|
||||
if ('imagePath' in payload) {
|
||||
formData.append('image', new Blob([await readFile(payload.imagePath)]));
|
||||
const fileBuffer = await readFile(payload.imagePath);
|
||||
formData.append('image', new Blob([new Uint8Array(fileBuffer)]));
|
||||
} else if ('text' in payload) {
|
||||
formData.append('text', payload.text);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user