Skip to content

Commit

Permalink
Small updates to the introduction code via PR comments
Browse files Browse the repository at this point in the history
Small updates to the code of the introduction given by @lvonk via PR zilverline/sequent-examples#66
  • Loading branch information
werdlerk committed Oct 21, 2024
1 parent 2facc46 commit 5d95285
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/docs/building-a-web-application.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Create `app/web.rb`:
```ruby
require 'sinatra/base'
require 'sinatra/flash' # for displaying flash messages
require 'sinatra/reloader' # for hot reloading changes we make
require 'sinatra/reloader' # for hot reloading changes
require_relative '../blog'

class Web < Sinatra::Base
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/modelling-the-domain.md
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ class Usernames < Sequent::AggregateRoot
ID = "85507d60-8645-4a8a-bdb8-3a9c86a0c635"

def self.instance(id = ID)
Sequent.configuration.aggregate_repository.load_aggregate(id)
Sequent.aggregate_repository.load_aggregate(id)
rescue Sequent::Core::AggregateRepository::AggregateNotFound
usernames = Usernames.new(id)
Sequent.aggregate_repository.add_aggregate(usernames)
Expand Down

0 comments on commit 5d95285

Please sign in to comment.