Sfoglia il codice sorgente

NM + DAR dbs - more fixes

Daniel 1 anno fa
parent
commit
60238b0a38
1 ha cambiato i file con 1 aggiunte e 2 eliminazioni
  1. 1 2
      src/db/index.ts

+ 1 - 2
src/db/index.ts

@@ -15,7 +15,7 @@ async function copyDatabaseFile(dbName: string, dbAsset: Asset) {
   await dbAsset.downloadAsync();
   await FileSystem.downloadAsync(
     dbAsset.uri,
-    FileSystem.documentDirectory + DS + dbName
+    sqliteFullPath + DS + dbName
   );
 
   const dbUri = sqliteFullPath + DS + dbName;
@@ -24,7 +24,6 @@ async function copyDatabaseFile(dbName: string, dbAsset: Asset) {
     from: dbAsset.localUri ?? '',
     to: dbUri,
   });
-  console.log("DB copy OK - " + dbUri);
   return dbUri;
 }