Skip to content

Commit

Permalink
feat: wait for images to be uploaded in create dog/cat
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseAlbDR committed Apr 17, 2024
1 parent 61139c9 commit 1955cf4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/presentation/animals/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ export class AnimalService {
},
});

// Give time for images to be uploaded
setTimeout(() => {
this.notificationService.addMessageToQueue(
{
Expand All @@ -269,7 +270,7 @@ export class AnimalService {
},
'animal-changed-notification'
);
}, 1000);
}, 4000);

return animal;
}
Expand Down Expand Up @@ -315,6 +316,7 @@ export class AnimalService {
},
});

// Give time for images to be uploaded
setTimeout(() => {
this.notificationService.addMessageToQueue(
{
Expand All @@ -324,7 +326,7 @@ export class AnimalService {
},
'animal-changed-notification'
);
}, 1000);
}, 4000);

return animal;
}
Expand Down

0 comments on commit 1955cf4

Please sign in to comment.