fix: removing backup folder before uploading

This commit is contained in:
Chubby Granny Chaser 2024-10-07 22:30:29 +01:00
parent 9405b0dcfc
commit 0f1ed20bbb
No known key found for this signature in database
4 changed files with 0 additions and 10 deletions

View File

@ -41,18 +41,15 @@ export function RepacksContextProvider({ children }: RepacksContextProps) {
}, []);
const indexRepacks = useCallback(() => {
console.log("INDEXING");
setIsIndexingRepacks(true);
repacksWorker.postMessage("INDEX_REPACKS");
repacksWorker.onmessage = () => {
console.log("INDEXING COMPLETE");
setIsIndexingRepacks(false);
};
}, []);
useEffect(() => {
console.log("CALLED");
indexRepacks();
}, [indexRepacks]);

View File

@ -11,8 +11,6 @@ export function CloudSyncFilesModal({
}: CloudSyncFilesModalProps) {
const { backupPreview } = useContext(cloudSyncContext);
console.log(backupPreview);
const files = useMemo(() => {
if (!backupPreview) {
return [];

View File

@ -29,7 +29,6 @@ export function HeroPanel({ isHeaderStuck }: HeroPanelProps) {
const [latestRepack] = repacks;
if (latestRepack) {
console.log(latestRepack);
const lastUpdate = format(latestRepack.uploadDate!, "dd/MM/yyyy");
const repacksCount = repacks.length;

View File

@ -64,8 +64,6 @@ export function EditProfileModal(
const { showSuccessToast, showErrorToast } = useToast();
const onSubmit = async (values: FormValues) => {
console.log(values);
return patchUser(values)
.then(async () => {
await Promise.allSettled([fetchUserDetails(), getUserProfile()]);
@ -120,8 +118,6 @@ export function EditProfileModal(
return { imagePath: null };
});
console.log(imagePath);
onChange(imagePath);
}
};