summaryrefslogtreecommitdiff
path: root/src/models
diff options
context:
space:
mode:
authorSatsuki Yanagi <17376330+u1-liquid@users.noreply.github.com>2019-05-03 18:38:19 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2019-05-03 18:38:19 +0900
commit0e764a2b3e2aed345750b87f4a77bee345598c69 (patch)
tree80eed4ef3749bb15c8d5a143e220f49d39afb8dc /src/models
parentSome import and export fixes (#4842) (diff)
downloadsharkey-0e764a2b3e2aed345750b87f4a77bee345598c69.tar.gz
sharkey-0e764a2b3e2aed345750b87f4a77bee345598c69.tar.bz2
sharkey-0e764a2b3e2aed345750b87f4a77bee345598c69.zip
Fix external service authentication (#4846)
Diffstat (limited to 'src/models')
-rw-r--r--src/models/entities/user-profile.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/models/entities/user-profile.ts b/src/models/entities/user-profile.ts
index a2d7b8d2c2..16e5d5b9e0 100644
--- a/src/models/entities/user-profile.ts
+++ b/src/models/entities/user-profile.ts
@@ -144,10 +144,10 @@ export class UserProfile {
})
public githubAccessToken: string | null;
- @Column('integer', {
- nullable: true, default: null,
+ @Column('varchar', {
+ length: 64, nullable: true, default: null,
})
- public githubId: number | null;
+ public githubId: string | null;
@Column('varchar', {
length: 64, nullable: true, default: null,
@@ -169,10 +169,10 @@ export class UserProfile {
})
public discordRefreshToken: string | null;
- @Column('integer', {
- nullable: true, default: null,
+ @Column('varchar', {
+ length: 64, nullable: true, default: null,
})
- public discordExpiresDate: number | null;
+ public discordExpiresDate: string | null;
@Column('varchar', {
length: 64, nullable: true, default: null,