added new API methods to User for easier use
This commit is contained in:
parent
00b2709365
commit
0cf79f7264
2 changed files with 10 additions and 2 deletions
|
|
@ -1251,10 +1251,12 @@ sub update {
|
|||
|
||||
# Make a safe copy of properties, we'll be deleting from it
|
||||
$properties = { %$properties };
|
||||
|
||||
$self->uncache;
|
||||
$properties->{lastUpdated} ||= time;
|
||||
|
||||
# No userId, bad!
|
||||
delete $properties->{userId};
|
||||
|
||||
# $self->{_user} contains all fields in `users` table
|
||||
my @userFields = ();
|
||||
my @userValues = ();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue