Skip to content

Commit 6c3ada2

Browse files
committed
Removed IngestEndpoint.emptyDB
1 parent 823a7ac commit 6c3ada2

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

ai-assistant/src/endpoints/ingest.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// endpoint.ts
21
import {
32
IHttp,
43
IModify,
@@ -73,16 +72,6 @@ namespace Helpers {
7372
export class IngestEndpoint extends ApiEndpoint {
7473
public path = "ingest";
7574

76-
async emptyDB(db: IDB) {
77-
const query = `MATCH (n) DETACH DELETE n`;
78-
try {
79-
await db.run(query);
80-
} catch (e) {
81-
console.log(e);
82-
console.error("Failed to empty DB");
83-
}
84-
}
85-
8675
makeBodies(
8776
content: any
8877
): [IngestEndpointRequestBody, IngestEndpointResponseBody] {

0 commit comments

Comments
 (0)