Fix missing promise type
This commit is contained in:
parent
f7c9686269
commit
31601cadd0
@ -94,7 +94,7 @@ export default class GiteaRepoLatestReleaseController extends Controller {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const file = fs.createWriteStream(tmpAssetPath);
|
const file = fs.createWriteStream(tmpAssetPath);
|
||||||
await new Promise((resolve, reject) => {
|
await new Promise<void>((resolve, reject) => {
|
||||||
const httpRequest = https.get(downloadProperties.asset.url, res => {
|
const httpRequest = https.get(downloadProperties.asset.url, res => {
|
||||||
res.on('end', () => {
|
res.on('end', () => {
|
||||||
resolve();
|
resolve();
|
||||||
|
Loading…
Reference in New Issue
Block a user