fix: todos (#1502)

* fix: remove console log

* fix: remove todos

* fix: setup uniqueness

* fix: setup uniqueness
This commit is contained in:
Fabi
2021-03-31 11:10:06 +02:00
committed by GitHub
parent fa6fb92c7e
commit d1284082a1
11 changed files with 32 additions and 16 deletions

View File

@@ -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")