From 28afa96cb9f9f8212afa96265cd0f168c3a1ba45 Mon Sep 17 00:00:00 2001 From: Adhiraj Singh Date: Tue, 20 Sep 2022 12:15:33 +0530 Subject: [PATCH] chore: make arg optional in fetchLatestBaileysVersion --- src/Utils/generics.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Utils/generics.ts b/src/Utils/generics.ts index 4ad9a66..bf49d98 100644 --- a/src/Utils/generics.ts +++ b/src/Utils/generics.ts @@ -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) => { +export const fetchLatestBaileysVersion = async(options: AxiosRequestConfig = { }) => { const URL = 'https://raw.githubusercontent.com/adiwajshing/Baileys/master/src/Defaults/baileys-version.json' try { const result = await axios.get<{ version: WAVersion }>(