users and profiles working

This commit is contained in:
Adolfo Reyna
2021-09-02 09:59:58 -07:00
parent a7ca68e6df
commit ba2b0bcbd6
4 changed files with 28 additions and 2 deletions

View File

@@ -17,6 +17,7 @@ class User {
this.lastUpdate = info.lastUpdate || new Date();
this.newsFeedCache = info.newsFeedCache || [];
this.isGroup = info.isGroup || false;
this.isCourse = info.isCourse || false;
}
toObj(){
@@ -30,6 +31,7 @@ class User {
r.lastUpdate = this.lastUpdate;
r.newsFeedCache = this.newsFeedCache;
r.isGroup = this.isGroup;
r.isCourse = this.isCourse;
return r;
}