Skip to content

Commit

Permalink
🛠 Fix previews not generated (#2011)
Browse files Browse the repository at this point in the history
  • Loading branch information
RomaricMourgues authored and Labels Bot committed Mar 10, 2022
1 parent 468a58e commit 42cc48b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions twake/backend/node/src/services/files/services/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ class Service implements FileServiceAPI {
await this.repository.save(entity);

try {
//On OVH S3 the file isn't accessible right way so we wait a second
await new Promise(r => setTimeout(r, 1000));

await this.pubsub.publish<PreviewPubsubRequest>("services:preview", {
data: { document, output },
});
Expand Down

0 comments on commit 42cc48b

Please sign in to comment.