mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fix: file not found in unlink
This commit is contained in:
committed by
Adhiraj Singh
parent
1ad65c5473
commit
2b854b37e4
@@ -29,7 +29,7 @@ export const useMultiFileAuthState = async(folder: string): Promise<{ state: Aut
|
|||||||
|
|
||||||
const removeData = async(file: string) => {
|
const removeData = async(file: string) => {
|
||||||
try {
|
try {
|
||||||
await unlink(fixFileName(file)!)
|
await unlink(join(folder, fixFileName(file)!))
|
||||||
} catch{
|
} catch{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user