diff options
author | Asaad Mahmood <Unknowngi@live.com> | 2015-07-28 18:01:10 +0500 |
---|---|---|
committer | Asaad Mahmood <Unknowngi@live.com> | 2015-07-28 18:01:10 +0500 |
commit | 5d77ff4bcde3496554551701438c1f42550e58b3 (patch) | |
tree | b5ae06798661167b07286d381199c5de2004f300 /store/sql_user_store.go | |
parent | 3dd541d3e09b99c60b892c37419dfa30b10700c7 (diff) | |
parent | 3a297135372c288b11c75acf6100d97c35c9dae3 (diff) | |
download | chat-5d77ff4bcde3496554551701438c1f42550e58b3.tar.gz chat-5d77ff4bcde3496554551701438c1f42550e58b3.tar.bz2 chat-5d77ff4bcde3496554551701438c1f42550e58b3.zip |
Merge branch 'master' of https://github.com/mattermost/platform
Diffstat (limited to 'store/sql_user_store.go')
-rw-r--r-- | store/sql_user_store.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/store/sql_user_store.go b/store/sql_user_store.go index 0228fa308..cd63e95b8 100644 --- a/store/sql_user_store.go +++ b/store/sql_user_store.go @@ -184,7 +184,7 @@ func (us SqlUserStore) UpdateLastPictureUpdate(userId string) StoreChannel { curTime := model.GetMillis() - if _, err := us.GetMaster().Exec("UPDATE Users SET LastPictureUpdate = ?, UpdateAt = ? WHERE Id = ?", curTime, curTime, userId); err != nil { + if _, err := us.GetMaster().Exec("UPDATE Users SET LastPictureUpdate = :Time, UpdateAt = :Time WHERE Id = :UserId", map[string]interface{}{"Time": curTime, "UserId": userId}); err != nil { result.Err = model.NewAppError("SqlUserStore.UpdateUpdateAt", "We couldn't update the update_at", "user_id="+userId) } else { result.Data = userId |