Skip to content

Commit 823a7ac

Browse files
committed
Added call to RC app to purge DB from ingestion
1 parent eccc546 commit 823a7ac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ingestion/src/process/ingest/ingest.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import { RC_APP_URI } from "../../constants"
77
import { DBNode } from "../../core/dbNode"
88

99
namespace 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

0 commit comments

Comments
 (0)