Update fetchLatestBaileysVersion

It was pointing to the old repository
This commit is contained in:
Samuel Rodrigues Almeida Costa
2023-04-21 17:06:56 -03:00
committed by GitHub
parent 6f007a63aa
commit 8ac8a18b8f

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
*/
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 {
const result = await axios.get<{ version: WAVersion }>(
URL,
@@ -386,4 +386,4 @@ export function trimUndefineds(obj: any) {
}
return obj
}
}