Skip to content

Commit

Permalink
fix(auth): set token belongs to relationship to nullable()
Browse files Browse the repository at this point in the history
This is because postgres is a beast, and will crash during migration
  • Loading branch information
Frantz Kati committed Nov 26, 2020
1 parent 5c55964 commit 0a56b33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/auth/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ class Auth {
dateTime('Last Used At').nullable(),
dateTime('Compromised At').nullable(),
dateTime('Expires At').hidden(),
belongsTo(this.config.userResource)
belongsTo(this.config.userResource).nullable()
])
}

Expand Down

0 comments on commit 0a56b33

Please sign in to comment.