chore: make arg optional in fetchLatestBaileysVersion

This commit is contained in:
Adhiraj Singh
2022-09-20 12:15:33 +05:30
parent 7d7249887c
commit 28afa96cb9

View File

@@ -218,7 +218,7 @@ export const printQRIfNecessaryListener = (ev: BaileysEventEmitter, logger: Logg
* utility that fetches latest baileys version from the master branch.
* Use to ensure your WA connection is always on the latest version
*/
export const fetchLatestBaileysVersion = async(options: AxiosRequestConfig<any>) => {
export const fetchLatestBaileysVersion = async(options: AxiosRequestConfig<any> = { }) => {
const URL = 'https://raw.githubusercontent.com/adiwajshing/Baileys/master/src/Defaults/baileys-version.json'
try {
const result = await axios.get<{ version: WAVersion }>(