leave todo comments

This commit is contained in:
pascal
2026-04-20 15:03:31 +02:00
parent bed8d89d9f
commit 0b04c0d03b
2 changed files with 2 additions and 0 deletions

View File

@@ -36,6 +36,7 @@ func (am *DefaultAccountManager) SavePolicy(ctx context.Context, accountID, user
return err
}
// TODO: split into separate create and update functions to avoid the isUpdate check
saveFunc := transaction.CreatePolicy
if isUpdate {
action = activity.PolicyUpdated

View File

@@ -28,6 +28,7 @@ func (am *DefaultAccountManager) SavePostureChecks(ctx context.Context, accountI
return err
}
// TODO: split into separate create and update functions to avoid the isUpdate check
if isUpdate {
updateAccountPeers, err = arePostureCheckChangesAffectPeers(ctx, transaction, accountID, postureChecks.ID)
if err != nil {