routes on files
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
class Post {
|
||||
constructor(info){
|
||||
if(!info || !info.userid) throw "Can not construct empty posts"
|
||||
if(!info || !info.userid) throw "Can not construct empty posts";
|
||||
this.userid = info.userid;
|
||||
this.content = info.content;
|
||||
this.createdAt = info.createdAt || new Date();
|
||||
|
||||
Reference in New Issue
Block a user