Skip to content

Commit

Permalink
change arg
Browse files Browse the repository at this point in the history
  • Loading branch information
henriettelienrebnor committed Dec 2, 2024
1 parent e866de5 commit e1a619a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions www/src/utils/Triplestore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export async function getNodeIdsInCommissioningPackage() {
return parseNodeIds(result!);
}

export async function queryTripleStore(sparql: string, method: string) {
export async function queryTripleStore(sparql: string, method: Method.Get | Method.Post) {
if (method === Method.Get) {
try {
const encoded = encodeURIComponent(sparql);
Expand All @@ -54,8 +54,6 @@ export async function queryTripleStore(sparql: string, method: string) {
} catch (error) {
console.error('Error:', error);
}
} else {
console.error('Wrong method, use GET or POST')
}
};

Expand Down

0 comments on commit e1a619a

Please sign in to comment.