Skip to content

Commit

Permalink
Convert in sequential
Browse files Browse the repository at this point in the history
  • Loading branch information
ledyba committed May 10, 2022
1 parent 4a49131 commit c0f7c85
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions server/src/shelf/Shelf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,10 @@ class Shelf {
let newEntity: Entity;
switch (entity.type) {
case 'image': {
await Promise.all([
resizeImage(originalPath, mediumPath, 2048),
makeImageIcon(originalPath, iconPath, 256),
]);
const mediumID = await this.storage.medium.upload(mediumPath);
await resizeImage(originalPath, mediumPath, 2048);
const iconID = await this.storage.icon.upload(iconPath);
await makeImageIcon(originalPath, iconPath, 256);
newEntity = {
type: 'image',
id: entity.id,
Expand Down

0 comments on commit c0f7c85

Please sign in to comment.