mirror of
https://github.com/trympet/nextcloud-artifacts-action.git
synced 2025-04-24 20:16:08 +02:00
await remote stream
This commit is contained in:
parent
4ab7fcecfe
commit
40bfed39fc
3
dist/index.js
vendored
3
dist/index.js
vendored
@ -613,6 +613,9 @@ class NextcloudClient {
|
|||||||
await new Promise((resolve, reject) => {
|
await new Promise((resolve, reject) => {
|
||||||
fileStream.on('error', e => reject(e)).on('close', () => resolve());
|
fileStream.on('error', e => reject(e)).on('close', () => resolve());
|
||||||
});
|
});
|
||||||
|
await new Promise((resolve, reject) => {
|
||||||
|
remoteStream.on('error', e => reject(e)).on('close', () => resolve());
|
||||||
|
});
|
||||||
return remoteFilePath;
|
return remoteFilePath;
|
||||||
}
|
}
|
||||||
async shareFile(remoteFilePath) {
|
async shareFile(remoteFilePath) {
|
||||||
|
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
@ -172,6 +172,10 @@ export class NextcloudClient {
|
|||||||
fileStream.on('error', e => reject(e)).on('close', () => resolve())
|
fileStream.on('error', e => reject(e)).on('close', () => resolve())
|
||||||
})
|
})
|
||||||
|
|
||||||
|
await new Promise<void>((resolve, reject) => {
|
||||||
|
remoteStream.on('error', e => reject(e)).on('close', () => resolve())
|
||||||
|
})
|
||||||
|
|
||||||
return remoteFilePath
|
return remoteFilePath
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user