Skip to content

Commit f8073e6

Browse files
authored
Merge branch 'main' into Error_handling
2 parents e0b2789 + 48acebd commit f8073e6

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { logger } from './src/utils/logger';
2+
import { syncAllData } from './src/services/sync';
23
import React, { useEffect, useState } from 'react';
3-
import { View, ActivityIndicator, Text, StyleSheet } from 'react-native';
44
import { initializeDatabase } from './src/db/index';
55
import AppNavigator from './src/navigation/AppNavigator';
66
import { NavigationContainer } from '@react-navigation/native';
77
import { SafeAreaProvider } from 'react-native-safe-area-context';
8-
import { syncAllData } from './src/services/sync';
8+
import { View, ActivityIndicator, Text, StyleSheet } from 'react-native';
99
import { FLUENT_USER_EMAIL } from '@env';
1010

1111
const log = logger.create('App');

src/services/sync.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import {
2121
} from '../services/storage';
2222

2323
const log = logger.create('SyncService');
24+
const db = getDatabase();
2425

2526
const 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
}

0 commit comments

Comments
 (0)