Skip to content

Commit

Permalink
Update enum values for OpenHIM Apps type (#1216)
Browse files Browse the repository at this point in the history
* Update enum values for OpenHIM Apps type

* Update API test scripts and bump OpenHIM Core version
  • Loading branch information
medchedli authored Feb 5, 2024
1 parent 0ef8191 commit 201308a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "openhim-core",
"description": "The OpenHIM core application that provides logging and routing of http requests",
"version": "8.4.0",
"version": "8.4.1",
"main": "./lib/server.js",
"bin": {
"openhim-core": "./bin/openhim-core.js"
Expand Down
2 changes: 1 addition & 1 deletion src/model/apps.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const AppSchema = new Schema({
icon: String,
type: {
type: String,
enum: ['link', 'embedded']
enum: ['internal', 'external', 'esmodule']
},
category: String,
access_roles: [String],
Expand Down
2 changes: 1 addition & 1 deletion test/integration/appsAPITests.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe('API Integration Tests', () => {
name: 'Test app',
description: 'An app for testing the app framework',
icon: 'data:image/png;base64, <base64>',
type: 'link',
type: 'external',
category: 'Operations',
access_roles: ['test-app-user'],
url: 'http://test-app.org/app',
Expand Down
2 changes: 1 addition & 1 deletion test/unit/appsTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ describe('Apps', () => {
name: 'Test app1',
description: 'An app for testing the app framework',
icon: 'data:image/png;base64, <base64>',
type: 'link',
type: 'external',
category: 'Operations',
access_roles: ['test-app-user'],
url: 'http://test-app.org/app1',
Expand Down

0 comments on commit 201308a

Please sign in to comment.