Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tristandostaler authored Jun 3, 2024
1 parent 2779dd0 commit e32a722
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/hooks/AppWriteAPI/useUpdateLocalStateFromDrive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react';
import useStore from '@store/cloud-auth-store';
import useLocalStore from '@store/store';
import useGetFile from './useGetFile';
import { migrateState, migrateV8 } from './migrate';
import { migrateState, migrateV8 } from '@store/migrate';
import { LocalStorageInterfaceV8ToV9 } from '@type/chat';
import stateVersion from '@constants/stateVersion';

Expand Down
2 changes: 1 addition & 1 deletion src/hooks/GoogleAPI/useUpdateLocalStateFromDrive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react';
import useStore from '@store/cloud-auth-store';
import useLocalStore from '@store/store';
import useGetFile from './useGetFile';
import { migrateState, migrateV8 } from './migrate';
import { migrateState, migrateV8 } from '@store/migrate';
import { LocalStorageInterfaceV8ToV9 } from '@type/chat';
import stateVersion from '@constants/stateVersion';

Expand Down
2 changes: 1 addition & 1 deletion src/store/migrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export const migrateV14 = (persistedState: LocalStorageInterfaceV13ToV14) => {
});
};

export const migrateState = (persistedState: StoreState, version: number) => {
export const migrateState = (persistedState: any, version: number) => {
switch (version) {
case 0:
migrateV0(persistedState as LocalStorageInterfaceV0ToV1);
Expand Down

0 comments on commit e32a722

Please sign in to comment.