mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00: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:
parent
cda7249a6a
commit
60a809d7b4
5 changed files with 2273 additions and 1937 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -839,7 +839,7 @@ describe(AuthService.name, () => {
|
|||
mocks.crypto.randomUUID.mockReturnValue(fileId);
|
||||
mocks.oauth.getProfilePicture.mockResolvedValue({
|
||||
contentType: 'image/jpeg',
|
||||
data: new Uint8Array([1, 2, 3, 4, 5]),
|
||||
data: new Uint8Array([1, 2, 3, 4, 5]).buffer,
|
||||
});
|
||||
mocks.user.update.mockResolvedValue(user);
|
||||
mocks.session.create.mockResolvedValue(factory.session());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue