diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-04-16 01:11:20 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-04-16 01:11:20 +0900 |
| commit | 400cdf0f269fc3b035b897e10323371d4c79c751 (patch) | |
| tree | 810a208e35cd8e767d73d3bf420f4549e0ccf402 /src | |
| parent | Refactor (diff) | |
| download | misskey-400cdf0f269fc3b035b897e10323371d4c79c751.tar.gz misskey-400cdf0f269fc3b035b897e10323371d4c79c751.tar.bz2 misskey-400cdf0f269fc3b035b897e10323371d4c79c751.zip | |
Fix #4705
Diffstat (limited to 'src')
| -rw-r--r-- | src/models/entities/access-token.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/models/entities/access-token.ts b/src/models/entities/access-token.ts index d08930cf5a..99d0c8b5fd 100644 --- a/src/models/entities/access-token.ts +++ b/src/models/entities/access-token.ts @@ -25,7 +25,8 @@ export class AccessToken { }) public hash: string; - @RelationId((self: AccessToken) => self.user) + @Index() + @Column(id()) public userId: User['id']; @ManyToOne(type => User, { |