DataSet - createdBy & createdAt
This commit is contained in:
@@ -19,8 +19,8 @@ export class Base implements Deserializable, Serializable {
|
||||
}
|
||||
|
||||
deserialize(input: any): this {
|
||||
if (input.createdAt) { input.createdAt = moment(input.createdAt); }
|
||||
if (input.modifiedAt) { input.modifiedAt = moment(input.modifiedAt); }
|
||||
if (input.createdAt) { input.createdAt = moment(input.createdAt).utc(true); }
|
||||
if (input.modifiedAt) { input.modifiedAt = moment(input.modifiedAt).utc(true); }
|
||||
if (input.createdBy) { input.createdBy = new User(input.createdBy); }
|
||||
if (input.modifiedBy) { input.modifiedBy = new User(input.modifiedBy); }
|
||||
Object.assign(this, input);
|
||||
|
||||
Reference in New Issue
Block a user