Skip to content

Commit

Permalink
fix norms in Sources
Browse files Browse the repository at this point in the history
  • Loading branch information
deinelieblings committed Nov 25, 2024
1 parent 23724b6 commit 5ac7404
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dao/updates.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ func UpdateDatabase() {
CreateDefaultOrganisation(ctx)
Updates.Insert(ctx, "create_default_organisation")
}
if !Updates.Check(ctx, "update_deposit_units_1") {
if !Updates.Check(ctx, "update_deposit_units_3") {
UpdateDepositUnitNorms(ctx)
Updates.Insert(ctx, "update_deposit_units_1")
Updates.Insert(ctx, "update_deposit_units_3")
}
if !Updates.Check(ctx, "publish_roles_initial") {
log.Print("publish_roles_initial")
Expand Down
2 changes: 2 additions & 0 deletions models/source.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ func (i *SourceCreate) Source() *Source {
TakingID: i.TakingID,
PaymentType: i.PaymentType,
Money: i.Money,
Norms: i.Norms,
Modified: vmod.NewModified(),
}
}
Expand All @@ -87,6 +88,7 @@ func (i *SourceUpdate) Source() *Source {
PaymentType: i.PaymentType,
TakingID: i.TakingID,
Money: i.Money,
Norms: i.Norms,
}
}

Expand Down

0 comments on commit 5ac7404

Please sign in to comment.