Merge pull request #12 from samuelrac/patch-1

chore: Update fetchLatestBaileysVersion
This commit is contained in:
Alessandro Autiero
2023-04-22 14:42:11 +02:00
committed by GitHub

View File

@@ -226,7 +226,7 @@ export const printQRIfNecessaryListener = (ev: BaileysEventEmitter, logger: Logg
* Use to ensure your WA connection is always on the latest version * 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' const URL = 'https://raw.githubusercontent.com/WhiskeySockets/Baileys/master/src/Defaults/baileys-version.json'
try { try {
const result = await axios.get<{ version: WAVersion }>( const result = await axios.get<{ version: WAVersion }>(
URL, URL,