File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { logger } from './src/utils/logger' ;
2+ import { syncAllData } from './src/services/sync' ;
23import React , { useEffect , useState } from 'react' ;
3- import { View , ActivityIndicator , Text , StyleSheet } from 'react-native' ;
44import { initializeDatabase } from './src/db/index' ;
55import AppNavigator from './src/navigation/AppNavigator' ;
66import { NavigationContainer } from '@react-navigation/native' ;
77import { SafeAreaProvider } from 'react-native-safe-area-context' ;
8- import { syncAllData } from './src/services/sync ' ;
8+ import { View , ActivityIndicator , Text , StyleSheet } from 'react-native ' ;
99import { FLUENT_USER_EMAIL } from '@env' ;
1010
1111const log = logger . create ( 'App' ) ;
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import {
2121} from '../services/storage' ;
2222
2323const log = logger . create ( 'SyncService' ) ;
24+ const db = getDatabase ( ) ;
2425
2526const MAX_SYNC_ATTEMPTS = 3 ;
2627
@@ -82,7 +83,6 @@ export async function syncUser(email: string) {
8283
8384 setUserSync ( String ( user . id ) , user . email ) ;
8485 log . info ( 'User synced' , { email : user . email } ) ;
85-
8686 return user ;
8787 } ) ;
8888}
You can’t perform that action at this time.
0 commit comments