File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
ingestion/src/process/ingest Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7,9 +7,9 @@ import { RC_APP_URI } from "../../constants"
77import { DBNode } from "../../core/dbNode"
88
99namespace Algorithms {
10- export async function emptyDB ( ) : Promise < boolean > {
10+ export async function purgeDB ( ) : Promise < boolean > {
1111 try {
12- const res = await fetch ( `${ RC_APP_URI } /empty ` , {
12+ const res = await fetch ( `${ RC_APP_URI } /purgeDB ` , {
1313 method : "POST" ,
1414 headers : {
1515 "Content-Type" : "application/json" ,
@@ -50,7 +50,7 @@ export async function insertDataIntoDB(batchesDirPath: string) {
5050
5151 /* Step 1: Empty DB */
5252 {
53- const success = await Algorithms . emptyDB ( )
53+ const success = await Algorithms . purgeDB ( )
5454 if ( ! success ) {
5555 console . log ( "❌ Error emptying db" )
5656 return
You can’t perform that action at this time.
0 commit comments