Skip to content

Commit 1b41ab7

Browse files
authored
fix: updated_at for org state change (#1321)
1 parent a522e3a commit 1b41ab7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/store/postgres/organization_repository.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,8 @@ func (r OrganizationRepository) UpdateByName(ctx context.Context, org organizati
463463
func (r OrganizationRepository) SetState(ctx context.Context, id string, state organization.State) error {
464464
query, params, err := dialect.Update(TABLE_ORGANIZATIONS).Set(
465465
goqu.Record{
466-
"state": state.String(),
466+
"state": state.String(),
467+
"updated_at": goqu.L("now()"),
467468
}).Where(
468469
goqu.Ex{
469470
"id": id,

0 commit comments

Comments
 (0)