* UserConfig now stores no numbers(all strings)
This is to avoid type coercion and loss of precision
This commit is contained in:
parent
68198cd300
commit
25692b6b92
@ -61,15 +61,15 @@ export class ServerConfig {
|
||||
}
|
||||
|
||||
export class UserConfig {
|
||||
id: Number
|
||||
id: String
|
||||
jwt: String|null
|
||||
permissions: Number
|
||||
permissions: String
|
||||
secret: String
|
||||
|
||||
constructor(json: Object) {
|
||||
this.id = json['id']
|
||||
this.id = `${json['id']}`
|
||||
this.jwt = json['jwt']
|
||||
this.permissions = json['permissions']
|
||||
this.permissions = `${json['permissions']}`
|
||||
this.secret = json['secret']
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user