* UserConfig now stores no numbers(all strings)

This is to avoid type coercion and loss of precision
This commit is contained in:
shockrah 2021-09-23 10:31:59 -07:00
parent 68198cd300
commit 25692b6b92

View File

@ -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']
}
}