Skip to content

Commit

Permalink
feature: put back referencing resource table for events
Browse files Browse the repository at this point in the history
  • Loading branch information
akeemphilbert committed Sep 2, 2024
1 parent 0ea0efb commit c8b30f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rest/gorm.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ func (e *GORMProjection) GetSubscribers(resourceType string) map[string][]EventH
}

func (e *GORMProjection) GetByURI(ctxt context.Context, logger Log, uri string) (Resource, error) {
resource := new(Event)
resource := new(BasicResource)
result := e.gormDB.Where("id = ?", uri).First(resource)
if result.Error != nil {
if !errors.Is(result.Error, gorm.ErrRecordNotFound) {
Expand Down

0 comments on commit c8b30f8

Please sign in to comment.