fix: file not found in unlink

This commit is contained in:
Leonardo Bein
2022-10-13 17:39:40 -03:00
committed by Adhiraj Singh
parent 1ad65c5473
commit 2b854b37e4

View File

@@ -29,7 +29,7 @@ export const useMultiFileAuthState = async(folder: string): Promise<{ state: Aut
const removeData = async(file: string) => {
try {
await unlink(fixFileName(file)!)
await unlink(join(folder, fixFileName(file)!))
} catch{
}