Feature/remove alias from user (#1218)
* Remove alias * Update changelog
This commit is contained in:
parent
8cb1b3f925
commit
a3bfa46fb0
@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
- Decreased the rate limiter duration of queue jobs from 5 to 4 seconds
|
- Decreased the rate limiter duration of queue jobs from 5 to 4 seconds
|
||||||
|
- Removed the alias from the `User` database schema
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
|
@ -54,7 +54,7 @@ export class WebAuthService {
|
|||||||
rpName: 'Ghostfolio',
|
rpName: 'Ghostfolio',
|
||||||
rpID: this.rpID,
|
rpID: this.rpID,
|
||||||
userID: user.id,
|
userID: user.id,
|
||||||
userName: user.alias,
|
userName: '',
|
||||||
timeout: 60000,
|
timeout: 60000,
|
||||||
attestationType: 'indirect',
|
attestationType: 'indirect',
|
||||||
authenticatorSelection: {
|
authenticatorSelection: {
|
||||||
|
@ -43,7 +43,7 @@ export class UserService {
|
|||||||
include: {
|
include: {
|
||||||
User: true
|
User: true
|
||||||
},
|
},
|
||||||
orderBy: { User: { alias: 'asc' } },
|
orderBy: { alias: 'asc' },
|
||||||
where: { GranteeUser: { id } }
|
where: { GranteeUser: { id } }
|
||||||
});
|
});
|
||||||
let tags = await this.tagService.getByUser(id);
|
let tags = await this.tagService.getByUser(id);
|
||||||
@ -98,7 +98,6 @@ export class UserService {
|
|||||||
const {
|
const {
|
||||||
accessToken,
|
accessToken,
|
||||||
Account,
|
Account,
|
||||||
alias,
|
|
||||||
authChallenge,
|
authChallenge,
|
||||||
createdAt,
|
createdAt,
|
||||||
id,
|
id,
|
||||||
@ -116,7 +115,6 @@ export class UserService {
|
|||||||
const user: UserWithSettings = {
|
const user: UserWithSettings = {
|
||||||
accessToken,
|
accessToken,
|
||||||
Account,
|
Account,
|
||||||
alias,
|
|
||||||
authChallenge,
|
authChallenge,
|
||||||
createdAt,
|
createdAt,
|
||||||
id,
|
id,
|
||||||
|
@ -0,0 +1,2 @@
|
|||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE "User" DROP COLUMN "alias";
|
@ -160,7 +160,6 @@ model Tag {
|
|||||||
|
|
||||||
model User {
|
model User {
|
||||||
accessToken String?
|
accessToken String?
|
||||||
alias String?
|
|
||||||
authChallenge String?
|
authChallenge String?
|
||||||
createdAt DateTime @default(now())
|
createdAt DateTime @default(now())
|
||||||
id String @id @default(uuid())
|
id String @id @default(uuid())
|
||||||
|
@ -111,7 +111,6 @@ async function main() {
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
alias: 'Demo',
|
|
||||||
id: '9b112b4d-3b7d-4bad-9bdd-3b0f7b4dac2f',
|
id: '9b112b4d-3b7d-4bad-9bdd-3b0f7b4dac2f',
|
||||||
role: Role.DEMO
|
role: Role.DEMO
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user