Browse Source

Bugfix/move data from ArrayBuffer to node's Buffer

So that express understands it and sends it properly in the controller
pull/4154/head
Szymon Łągiewka 8 months ago
parent
commit
8ddc357533
Failed to extract signature
  1. 4
      apps/api/src/app/logo/logo.service.ts

4
apps/api/src/app/logo/logo.service.ts

@ -51,6 +51,8 @@ export class LogoService {
this.configurationService.get('REQUEST_TIMEOUT') this.configurationService.get('REQUEST_TIMEOUT')
) )
} }
).then((res) => res.arrayBuffer()); )
.then((res) => res.arrayBuffer())
.then((buffer) => Buffer.from(buffer));
} }
} }

Loading…
Cancel
Save