🌟 Support for PostgreSQL (#306)
This commit is contained in:
@@ -35,22 +35,6 @@ export default class CompanyUser {
|
||||
|
||||
@Column("last_update_day", "number")
|
||||
lastUpdateDay: number;
|
||||
|
||||
/**
|
||||
* 0: member,
|
||||
* 1, 2, 3: admin,
|
||||
*/
|
||||
@Column("level", "number")
|
||||
level: number; //Depreciated
|
||||
|
||||
@Column("is_externe", "tdrive_boolean")
|
||||
isExterne: boolean; //Depreciated
|
||||
|
||||
@Column("did_connect_today", "tdrive_boolean")
|
||||
didConnectToday: boolean; //Depreciated
|
||||
|
||||
@Column("app_used_today", "json")
|
||||
appUsedToday: Array<string>; //Depreciated
|
||||
}
|
||||
|
||||
export type CompanyUserPrimaryKey = Partial<Pick<CompanyUser, "group_id" | "user_id">>;
|
||||
|
||||
@@ -276,9 +276,6 @@ export class CompanyServiceImpl {
|
||||
}
|
||||
|
||||
entity.role = role;
|
||||
if (level) {
|
||||
entity.level = level;
|
||||
}
|
||||
entity.applications = applications;
|
||||
await this.companyUserRepository.save(entity, context);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user