Skip to content

Commit

Permalink
fix: empId & sql
Browse files Browse the repository at this point in the history
  • Loading branch information
bigfengyu committed Jul 29, 2020
1 parent ea32d24 commit 12ee098
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion database/v2020_07_06_history_log.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ CREATE TABLE `history_log` (
`entityId` int NOT NULL,
`changeLog` text COLLATE utf8mb4_unicode_ci NOT NULL,
`relatedJSONData` text COLLATE utf8mb4_unicode_ci,
`userId` int NOT NULL,
`userId` bigint(11) unsigned NOT NULL,
`createdAt` datetime NOT NULL,
`updatedAt` datetime NOT NULL,
`deletedAt` datetime DEFAULT NULL,
Expand Down
2 changes: 1 addition & 1 deletion src/service/repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export default class RepositoryService {
},
},
include: [{
attributes: ['id', 'fullname', 'empId'],
attributes: ['id', 'fullname'],
model: User,
as: 'user',
}],
Expand Down

0 comments on commit 12ee098

Please sign in to comment.