Skip to content

Commit

Permalink
openapi fix and new DataSharingAgreement
Browse files Browse the repository at this point in the history
  • Loading branch information
yvonne-kovacs committed Mar 21, 2022
1 parent 5cd1d80 commit 6cf3cec
Show file tree
Hide file tree
Showing 6 changed files with 303 additions and 8,613 deletions.
28 changes: 14 additions & 14 deletions DataSharingAgreement.json

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export async function notify (origin: string, predefined: boolean, type: string,
// })
}

export function checkState(state:number) {
export function getState(state:number) {

let response

Expand All @@ -206,10 +206,14 @@ export function checkState(state:number) {
break
}
case 2: {
response = {state: "violated"}
response = {state: "updated"}
break
}
case 3: {
response = {state: "violated"}
break
}
case 4: {
response = {state: "terminated"}
break
}
Expand Down
Loading

0 comments on commit 6cf3cec

Please sign in to comment.