22// Licensed under the MIT license. See LICENSE file in the project root for full license information.
33
44import { Client } from '@dolittle/sdk' ;
5-
5+ import { TenantId } from '@dolittle/sdk.execution' ;
66import { MyEventHandler } from './MyEventHandler' ;
77import { MyEvent } from './MyEvent' ;
88import { PartitionId } from '@dolittle/sdk.events' ;
@@ -15,9 +15,9 @@ const client = Client
1515 . withEventHandlers ( eventHandlers =>
1616 eventHandlers . register ( MyEventHandler ) )
1717 . withEventHorizons ( _ => {
18- _ . forTenant ( '900893e7-c4cc-4873-8032-884e965e4b97' , ts => {
18+ _ . forTenant ( TenantId . development , ts => {
1919 ts . fromProducerMicroservice ( '7a6155dd-9109-4488-8f6f-c57fe4b65bfb' )
20- . fromProducerTenant ( '900893e7-c4cc-4873-8032-884e965e4b97' )
20+ . fromProducerTenant ( TenantId . development )
2121 . fromProducerStream ( '2c087657-b318-40b1-ae92-a400de44e507' )
2222 . fromProducerPartition ( PartitionId . unspecified . value )
2323 . toScope ( '406d6473-7cc9-44a6-a55f-775c1021d957' )
@@ -40,5 +40,5 @@ event.aString = 'Forty two';
4040
4141client
4242 . eventStore
43- . forTenant ( '900893e7-c4cc-4873-8032-884e965e4b97' )
43+ . forTenant ( TenantId . development )
4444 . commitPublic ( event , 'd8cb7301-4bec-4451-a72b-2db53c6dc05d' ) ;
0 commit comments