mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 21:47:32 +00:00
fix: todos (#1502)
* fix: remove console log * fix: remove todos * fix: setup uniqueness * fix: setup uniqueness
This commit is contained in:
@@ -74,7 +74,6 @@ func (c *Commands) ChangeMachine(ctx context.Context, machine *domain.Machine) (
|
||||
return writeModelToMachine(existingMachine), nil
|
||||
}
|
||||
|
||||
//TODO: adlerhurst we should check userID on the same level, in user.go userID is checked in public funcs
|
||||
func (c *Commands) machineWriteModelByID(ctx context.Context, userID, resourceOwner string) (writeModel *MachineWriteModel, err error) {
|
||||
if userID == "" {
|
||||
return nil, caos_errs.ThrowInvalidArgument(nil, "COMMAND-0Plof", "Errors.User.UserIDMissing")
|
||||
|
@@ -32,8 +32,6 @@ func (wm *MachineKeyWriteModel) AppendEvents(events ...eventstore.EventReader) {
|
||||
for _, event := range events {
|
||||
switch e := event.(type) {
|
||||
case *user.MachineKeyAddedEvent:
|
||||
//TODO: adlerhurst we should decide who should handle the correct event appending
|
||||
// IMO in this append events we should only get events with the correct keyID
|
||||
if wm.KeyID != e.KeyID {
|
||||
continue
|
||||
}
|
||||
|
Reference in New Issue
Block a user