Update user creation from teams and users services to not set accessedAt
accessedAt should only be updated when a user performs some sort of action. Creating a user via the users API or by adding them to a team is an action done by someone else, not the user themselves. As such, the accessedAt timestamp shouldn't update.
This commit is contained in:
parent
c6003e86a1
commit
6b0c24a9d6
2 changed files with 0 additions and 2 deletions
|
@ -491,7 +491,6 @@ App::post('/v1/teams/:teamId/memberships')
|
|||
'tokens' => null,
|
||||
'memberships' => null,
|
||||
'search' => implode(' ', [$userId, $email, $name]),
|
||||
'accessedAt' => DateTime::now(),
|
||||
])));
|
||||
} catch (Duplicate $th) {
|
||||
throw new Exception(Exception::USER_ALREADY_EXISTS);
|
||||
|
|
|
@ -97,7 +97,6 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e
|
|||
'tokens' => null,
|
||||
'memberships' => null,
|
||||
'search' => implode(' ', [$userId, $email, $phone, $name]),
|
||||
'accessedAt' => DateTime::now(),
|
||||
]));
|
||||
} catch (Duplicate $th) {
|
||||
throw new Exception(Exception::USER_ALREADY_EXISTS);
|
||||
|
|
Loading…
Reference in a new issue