mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 14:20:31 +00:00
fix: invite user service issues
This commit is contained in:
@@ -6,6 +6,7 @@ export class UserInvite extends BaseModel {
|
||||
userId!: number;
|
||||
tenantId!: number;
|
||||
email!: string;
|
||||
createdAt!: Date;
|
||||
|
||||
/**
|
||||
* Table name.
|
||||
@@ -32,4 +33,11 @@ export class UserInvite extends BaseModel {
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Called before inserting a new record.
|
||||
*/
|
||||
$beforeInsert() {
|
||||
this.createdAt = new Date();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user