소스 검색

NM + DAR dbs - more fixes

Daniel 1 년 전
부모
커밋
60238b0a38
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  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;
 }