Skip to content

Commit 3143769

Browse files
committed
Move Basic to Kitchen. Fix partitioned bug
1 parent 030fe26 commit 3143769

10 files changed

Lines changed: 9 additions & 9 deletions

File tree

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { DishPrepared } from './DishPrepared';
1010
export class DishHandler {
1111

1212
@handles(DishPrepared)
13-
DishPrepared(event: DishPrepared, eventContext: EventContext) {
14-
console.log(`${event.chef} has prepared ${event.dish}. Yummm!`);
13+
dishPrepared(event: DishPrepared, eventContext: EventContext) {
14+
console.log(`${event.Chef} has prepared ${event.Dish}. Yummm!`);
1515
}
1616
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ import { eventType } from '@dolittle/sdk.events';
66

77
@eventType('1844473f-d714-4327-8b7f-5b3c2bdfc26a')
88
export class DishPrepared {
9-
constructor(readonly dish: string, readonly chef: string) {}
9+
constructor(readonly Dish: string, readonly Chef: string) {}
1010
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "basic",
2+
"name": "kitchen",
33
"private": true,
44
"version": "13.0.1",
55
"main": "index.js",
@@ -20,4 +20,4 @@
2020
"nodemon": "^2.0.4",
2121
"ts-node": "^8.10.1"
2222
}
23-
}
23+
}

Samples/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"files": [],
33
"include": [],
44
"references": [
5-
{ "path": "./Basic" },
5+
{ "path": "./Kitchen" },
66
{ "path": "./Container" },
77
{ "path": "./EventHorizon" }
88
]
9-
}
9+
}

Source/events.handling/Builder/eventHandlerDecorator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export function eventHandler(eventHandlerId: EventHandlerId | Guid | string, o
2020
EventHandlerDecoratedTypes.register(new EventHandlerDecoratedType(
2121
EventHandlerId.from(eventHandlerId),
2222
options.inScope ? ScopeId.from(options.inScope) : ScopeId.default,
23-
!!options.partitioned,
23+
options.partitioned === undefined || options.partitioned,
2424
target));
2525
};
2626
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"private": true,
33
"workspaces": [
44
"Source/*",
5-
"Samples/Basic",
5+
"Samples/Kitchen",
66
"Samples/Container",
77
"Samples/EventHorizon"
88
],

0 commit comments

Comments
 (0)