Skip to content

Commit

Permalink
Update useUpdateFile.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
tristandostaler authored Sep 9, 2024
1 parent bfc0d9f commit 09d9428
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/AppWriteAPI/useUpdateFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const useUpdateFile = () => {

const updateFile = (fileContent: string): Promise<any> => {
var fileName = fileId();
return deleteFile(fileName).then(() => { return sleep(100).then(() => { return createFile(fileName, fileContent); }) }).catch((reason) => { reLogin(); });
return deleteFile(fileName).then(() => { return sleep(100).then(() => { return createFile(fileName, fileContent); }) }).catch((reason) => { reLogin(reason); });
}
return updateFile;
};
Expand Down

0 comments on commit 09d9428

Please sign in to comment.