oop
parent
7450ba86b6
commit
caea2926c5
|
|
@ -39,6 +39,8 @@ func upsertEvent(ctx context.Context, templateID int, e template.Event) error {
|
||||||
|
|
||||||
func (t *Template) apply(e template.Event) error {
|
func (t *Template) apply(e template.Event) error {
|
||||||
switch e := e.(type) {
|
switch e := e.(type) {
|
||||||
|
case *int:
|
||||||
|
_ = e
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,8 @@ func upsertEvent(ctx context.Context, priceIsWrongID int, e priceiswrong.Event)
|
||||||
|
|
||||||
func (p *PriceIsWrong) apply(e priceiswrong.Event) error {
|
func (p *PriceIsWrong) apply(e priceiswrong.Event) error {
|
||||||
switch e := e.(type) {
|
switch e := e.(type) {
|
||||||
|
case *int:
|
||||||
|
_ = e
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue