Skip to content

Commit 62e6f25

Browse files
committed
Fixed database query
1 parent 254d13a commit 62e6f25

File tree

1 file changed

+12
-12
lines changed
  • ai-assistant/src/core/db

1 file changed

+12
-12
lines changed

ai-assistant/src/core/db/db.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -56,18 +56,18 @@ export class DBNode {
5656
getDBInsertQuery(): string {
5757
let query = "";
5858
query += `
59-
CREATE (n:${this.descriptor} {
60-
id: $id,
61-
name: $name,
62-
type: $type,
63-
64-
code: $code,
65-
filePath: $filePath,
66-
67-
nameEmbeddings: $nameEmbeddings,
68-
codeEmbeddings: $codeEmbeddings
69-
})
70-
`;
59+
CREATE (n:${this.descriptor} {
60+
id: $id,
61+
name: $name,
62+
type: $type,
63+
64+
code: $code,
65+
filePath: $filePath,
66+
67+
nameEmbeddings: $nameEmbeddings,
68+
codeEmbeddings: $codeEmbeddings
69+
})
70+
`;
7171

7272
return query;
7373
}

0 commit comments

Comments
 (0)