Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removing unnecessary comments
Browse files Browse the repository at this point in the history
AlexWeinstein92 committed Mar 5, 2024
1 parent f1458f1 commit 6a903e0
Showing 2 changed files with 0 additions and 32 deletions.
11 changes: 0 additions & 11 deletions src/main/riddl/Product/product.riddl
Original file line number Diff line number Diff line change
@@ -73,17 +73,6 @@ context ProductContext is {
handler ProductHandler is {
on command CreateProduct {
morph entity Product to state DraftProductState with record DraftProduct
// (
// sku = @CreateProduct.sku,
// info = @CreatProduct.info,
// meta = !MemberContext.MetaInfo(
// createdOn = now(),
// createdBy = @CreatProduct.onBehalfOf,
// lastUpdatedOn = now(),
// lastUpdatedBy = @CreatProduct.onBehalfOf,
// currentState = @ProductStates.Draft
// )
// )
}
on other {
error "Only the CreateProduct command is allowed in the default state."
21 changes: 0 additions & 21 deletions src/main/riddl/Store/Store.riddl
Original file line number Diff line number Diff line change
@@ -76,29 +76,8 @@ context StoreContext is {
handler DefaultStoreHandler is {
on command CreateStore {
send event StoreCreated
// (
// storeId = @CreateStore.storeId,
// info = @CreateStore.info,
// meta = !StoreContext.MetaInfo(
// createdOn = now(),
// createdBy = @CreateStore.creatingMember,
// lastUpdatedOn = now(),
// lastUpdatedBy = @CreateStore.creatingMember,
// currentState = @CreateStore.Draft
// )
// )
to outlet StoreEvents.Events
morph entity Store to state DraftStore with record DraftStoreState
// (
// info = @CreateStore.info,
// meta = !StoreContext.MetaInfo(
// createdOn = now(),
// createdBy = @CreateStore.creatingMember,
// lastUpdatedOn = now(),
// lastUpdatedBy = @CreateStore.creatingMember,
// currentState = @StoreStates.Draft
// )
// )
}
on other {
error "Only the CreateStore command is allowed in the default state"

0 comments on commit 6a903e0

Please sign in to comment.