mirror of
https://github.com/trympet/nextcloud-artifacts-action.git
synced 2025-04-24 20:16:08 +02:00
lint
This commit is contained in:
parent
565777588d
commit
bcd3d376b1
@ -16,7 +16,7 @@ export class NextcloudArtifact {
|
||||
readonly errorBehavior: NoFileOption
|
||||
|
||||
constructor(private inputs: Inputs) {
|
||||
this.token = inputs.Token;
|
||||
this.token = inputs.Token
|
||||
this.name = inputs.ArtifactName
|
||||
this.path = inputs.ArtifactPath
|
||||
this.errorBehavior = inputs.NoFileBehvaior
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user