@ossy/platform 1.39.1 → 1.39.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +9 -9
- package/src/server.js +2 -2
- package/src/tasks/change-stream.js +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ossy/platform",
|
|
3
|
-
"version": "1.39.
|
|
3
|
+
"version": "1.39.2",
|
|
4
4
|
"description": "Ossy application server runtime",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -40,13 +40,13 @@
|
|
|
40
40
|
"@aws-sdk/s3-request-presigner": "^3.1057.0",
|
|
41
41
|
"@aws-sdk/util-create-request": "^3.972.26",
|
|
42
42
|
"@aws-sdk/util-format-url": "^3.972.17",
|
|
43
|
-
"@ossy/event-store": "^1.8.
|
|
44
|
-
"@ossy/locale": "^1.40.
|
|
45
|
-
"@ossy/observability": "^1.8.
|
|
46
|
-
"@ossy/policies": "^1.13.
|
|
47
|
-
"@ossy/sdk": "^1.40.
|
|
48
|
-
"@ossy/tokens": "^1.13.
|
|
49
|
-
"@ossy/users": "^1.13.
|
|
43
|
+
"@ossy/event-store": "^1.8.2",
|
|
44
|
+
"@ossy/locale": "^1.40.2",
|
|
45
|
+
"@ossy/observability": "^1.8.2",
|
|
46
|
+
"@ossy/policies": "^1.13.2",
|
|
47
|
+
"@ossy/sdk": "^1.40.2",
|
|
48
|
+
"@ossy/tokens": "^1.13.2",
|
|
49
|
+
"@ossy/users": "^1.13.2",
|
|
50
50
|
"cookie-parser": "^1.4.7",
|
|
51
51
|
"dotenv": ">=16.0.0 <18.0.0",
|
|
52
52
|
"express": ">=5.0.0 <6.0.0",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"src",
|
|
65
65
|
"Dockerfile"
|
|
66
66
|
],
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "2b8745d57fee8b6c08787e2755b4df489291a5cd"
|
|
68
68
|
}
|
package/src/server.js
CHANGED
|
@@ -7,7 +7,7 @@ import { Router as OssyRouter } from '@ossy/router'
|
|
|
7
7
|
import cookieParser from 'cookie-parser'
|
|
8
8
|
import { ProxyInternal } from './proxy-internal.js'
|
|
9
9
|
import { SDK, resolveActionId } from '@ossy/sdk'
|
|
10
|
-
import { AggregateRebuild } from '@ossy/event-store'
|
|
10
|
+
import { AggregateRebuild, resolveMongoUrl } from '@ossy/event-store'
|
|
11
11
|
import { TaskService } from './tasks/task-service.js'
|
|
12
12
|
import { ChangeStream } from './tasks/change-stream.js'
|
|
13
13
|
import { CONTENT_SLOT_NAME } from '@ossy/app/runtime/resolve-shell-slots'
|
|
@@ -224,7 +224,7 @@ export async function startServer (options = {}) {
|
|
|
224
224
|
TaskService.startScheduler()
|
|
225
225
|
|
|
226
226
|
if (process.env.DB_URL) {
|
|
227
|
-
ChangeStream.start(process.env.DB_URL)
|
|
227
|
+
ChangeStream.start(resolveMongoUrl(process.env.DB_URL))
|
|
228
228
|
}
|
|
229
229
|
|
|
230
230
|
const pageRouter = OssyRouter.of({
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { TaskService } from './task-service.js'
|
|
2
2
|
import { createLogger } from '@ossy/observability'
|
|
3
|
+
import { resolveMongoUrl } from '@ossy/event-store'
|
|
3
4
|
|
|
4
5
|
const log = createLogger('platform')
|
|
5
6
|
|
|
@@ -25,7 +26,7 @@ export class ChangeStream {
|
|
|
25
26
|
static start(dbUrl) {
|
|
26
27
|
ChangeStream._stopped = false
|
|
27
28
|
ChangeStream._reconnectAttempts = 0
|
|
28
|
-
ChangeStream._dbUrl = dbUrl
|
|
29
|
+
ChangeStream._dbUrl = resolveMongoUrl(dbUrl)
|
|
29
30
|
ChangeStream._open().catch((error) => {
|
|
30
31
|
log.error('[ChangeStream] Change stream could not be opened', undefined, error)
|
|
31
32
|
ChangeStream._scheduleReconnect()
|