@tomei/sso 0.29.0 → 0.29.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tomei/sso",
3
- "version": "0.29.0",
3
+ "version": "0.29.2",
4
4
  "description": "Tomei SSO Package",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -2080,13 +2080,13 @@ export class LoginUser extends LoginUserBase {
2080
2080
  await LoginUser._UserGroupRepo.update(
2081
2081
  {
2082
2082
  GroupCode: data.BuildingCode,
2083
+ UpdatedAt: new Date(),
2084
+ UpdatedById: loginUser.UserId,
2083
2085
  },
2084
2086
  {
2085
2087
  where: {
2086
2088
  UserId: this.UserId,
2087
2089
  GroupCode: userBuilding.GroupCode,
2088
- UpdatedAt: new Date(),
2089
- UpdatedById: loginUser.UserId,
2090
2090
  },
2091
2091
  transaction: dbTransaction,
2092
2092
  },
@@ -2149,13 +2149,13 @@ export class LoginUser extends LoginUserBase {
2149
2149
  await LoginUser._UserGroupRepo.update(
2150
2150
  {
2151
2151
  GroupCode: data.CompanyCode,
2152
+ UpdatedAt: new Date(),
2153
+ UpdatedById: loginUser.UserId,
2152
2154
  },
2153
2155
  {
2154
2156
  where: {
2155
2157
  UserId: this.UserId,
2156
2158
  GroupCode: userCompany.GroupCode,
2157
- UpdatedAt: new Date(),
2158
- UpdatedById: loginUser.UserId,
2159
2159
  },
2160
2160
  transaction: dbTransaction,
2161
2161
  },
@@ -2218,13 +2218,13 @@ export class LoginUser extends LoginUserBase {
2218
2218
  await LoginUser._UserGroupRepo.update(
2219
2219
  {
2220
2220
  GroupCode: data.DepartmentCode,
2221
+ UpdatedAt: new Date(),
2222
+ UpdatedById: loginUser.UserId,
2221
2223
  },
2222
2224
  {
2223
2225
  where: {
2224
2226
  UserId: this.UserId,
2225
2227
  GroupCode: userDepartment.GroupCode,
2226
- UpdatedAt: new Date(),
2227
- UpdatedById: loginUser.UserId,
2228
2228
  },
2229
2229
  transaction: dbTransaction,
2230
2230
  },
@@ -22,6 +22,7 @@ export default class UserGroupModel extends Model {
22
22
  primaryKey: true,
23
23
  type: DataType.INTEGER,
24
24
  allowNull: false,
25
+ autoIncrement: true,
25
26
  })
26
27
  UserGroupId: number;
27
28