♻️ Moving product into function signature
This commit is contained in:
parent
561a40be63
commit
b502075cb3
1 changed files with 1 additions and 3 deletions
|
@ -1,8 +1,6 @@
|
||||||
import * as http from 'http';
|
import * as http from 'http';
|
||||||
|
|
||||||
export const getFileContents: () => Promise<Buffer> = () => new Promise((resolve, reject) => {
|
export const getFileContents: (product?: string) => Promise<Buffer> = (product: string = 'assets_swtor_de_de') => new Promise((resolve, reject) => {
|
||||||
const product = 'assets_swtor_de_de';
|
|
||||||
|
|
||||||
//Generate URL
|
//Generate URL
|
||||||
const url = `http://cdn-patch.swtor.com/patch/${product}/${product}_-1to0.solidpkg`;
|
const url = `http://cdn-patch.swtor.com/patch/${product}/${product}_-1to0.solidpkg`;
|
||||||
const path = `/patch/${product}/${product}_-1to0.solidpkg`;
|
const path = `/patch/${product}/${product}_-1to0.solidpkg`;
|
||||||
|
|
Loading…
Reference in a new issue