mirror of
https://github.com/trympet/nextcloud-artifacts-action.git
synced 2025-07-13 05:35:38 +02:00
lint
This commit is contained in:
@ -138,14 +138,14 @@ export class NextcloudClient {
|
||||
|
||||
fileStream.pipe(remoteStream)
|
||||
|
||||
const timer = setTimeout(() => {}, 20_000);
|
||||
const timer = setTimeout(() => {}, 20_000)
|
||||
await Promise.all([fileStreamPromise, remoteStreamPromise])
|
||||
|
||||
// HACK: Nextcloud has not fully processed the file, despite returning 200.
|
||||
// Waiting for 1s seems to do the trick.
|
||||
await new Promise(resolve => setTimeout(resolve, 1_000));
|
||||
await new Promise(resolve => setTimeout(resolve, 1_000))
|
||||
|
||||
clearTimeout(timer);
|
||||
clearTimeout(timer)
|
||||
return remoteFilePath
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user