Skip to content

Commit

Permalink
Demo repo improvements for v2 (#251)
Browse files Browse the repository at this point in the history
Updates to demo apps enabled by v2 release:
1. Update package json to v2
2. Use workflowID instead of getWorkflowUUID()
  • Loading branch information
chuck-dbos authored Jan 16, 2025
1 parent 8a08280 commit 9b5bbeb
Show file tree
Hide file tree
Showing 29 changed files with 329 additions and 1,047 deletions.
104 changes: 35 additions & 69 deletions typescript/alert-center/package-lock.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions typescript/alert-center/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dev": "nodemon"
},
"devDependencies": {
"@dbos-inc/dbos-cloud": "^1.30.13",
"@dbos-inc/dbos-cloud": "^2.0.2",
"@dbos-inc/eslint-plugin": "^3.3.3",
"@types/koa": "^2.15.0",
"@types/uuid": "^9.0.8",
Expand All @@ -20,9 +20,9 @@
"typescript": "^5.3.3"
},
"dependencies": {
"@dbos-inc/dbos-datetime": "^1.31.6-preview",
"@dbos-inc/dbos-kafkajs": "^1.31.17-preview",
"@dbos-inc/dbos-sdk": "^1.31.17-preview",
"@dbos-inc/dbos-datetime": "^2.0.2",
"@dbos-inc/dbos-kafkajs": "^2.0.2",
"@dbos-inc/dbos-sdk": "^2.0.2",
"liquidjs": "^10.10.1",
"ts-node": "^10.9.2",
"uuid": "^9.0.1"
Expand Down
2 changes: 1 addition & 1 deletion typescript/alert-center/src/frontend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class Frontend {
const userRecWF = await DBOS.startWorkflow(AlertCenter).userAssignmentWorkflow(name, more_time);

//This Workflow Event lets us know if we have an assignment and, if so, how much time is left
const userRec = await DBOS.getEvent<AlertEmployeeInfo>(userRecWF.getWorkflowUUID(), 'rec');
const userRec = await DBOS.getEvent<AlertEmployeeInfo>(userRecWF.workflowID, 'rec');
return userRec;
}

Expand Down
74 changes: 14 additions & 60 deletions typescript/bank/bank-backend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions typescript/bank/bank-backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"license": "ISC",
"private": true,
"dependencies": {
"@dbos-inc/dbos-sdk": "^1.31.6-preview",
"@dbos-inc/dbos-sdk": "^2.0.2",
"@koa/bodyparser": "^5.0.0",
"@koa/cors": "^5.0.0",
"@koa/router": "^12.0.0",
Expand All @@ -31,7 +31,7 @@
"prisma": "^5.1.1"
},
"devDependencies": {
"@dbos-inc/dbos-cloud": "^1.29.15",
"@dbos-inc/dbos-cloud": "^2.0.2",
"@dbos-inc/eslint-plugin": "^3.3.3",
"@types/jest": "^29.5.3",
"@types/koa__cors": "^4.0.1",
Expand Down
Loading

0 comments on commit 9b5bbeb

Please sign in to comment.