mirror of
https://github.com/mattermost/focalboard.git
synced 2024-11-27 08:31:20 +02:00
update singleUser to return workspace UpdateAt as getMe User createAt
This commit is contained in:
parent
00c5affae7
commit
5d5147511d
@ -1045,12 +1045,13 @@ func (a *API) handleGetMe(w http.ResponseWriter, r *http.Request) {
|
|||||||
defer a.audit.LogRecord(audit.LevelRead, auditRec)
|
defer a.audit.LogRecord(audit.LevelRead, auditRec)
|
||||||
|
|
||||||
if userID == model.SingleUser {
|
if userID == model.SingleUser {
|
||||||
|
ws, _ := a.app.GetRootTeam()
|
||||||
now := utils.GetMillis()
|
now := utils.GetMillis()
|
||||||
user = &model.User{
|
user = &model.User{
|
||||||
ID: model.SingleUser,
|
ID: model.SingleUser,
|
||||||
Username: model.SingleUser,
|
Username: model.SingleUser,
|
||||||
Email: model.SingleUser,
|
Email: model.SingleUser,
|
||||||
CreateAt: now,
|
CreateAt: ws.UpdateAt,
|
||||||
UpdateAt: now,
|
UpdateAt: now,
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user