Update: keys cant be updated (for security reasons)

ref #56
This commit is contained in:
2020-12-29 21:00:43 +01:00
parent 04813173e4
commit b53b5cf91f
4 changed files with 8 additions and 56 deletions

View File

@@ -1,5 +1,4 @@
import {
IsBoolean,
IsInt,
@@ -27,12 +26,6 @@ export class ResponseStatsClient {
@IsOptional()
description?: string;
/**
* Is the client enabled?
*/
@IsBoolean()
enabled: boolean;
/**
* The client's api key.
* Only visible on creation or regeneration.
@@ -55,8 +48,7 @@ export class ResponseStatsClient {
public constructor(client: StatsClient) {
this.id = client.id;
this.description = client.description;
this.enabled = client.enabled;
this.prefix = client.prefix;
this.key = "Only visible on creation/update.";
this.key = "Only visible on creation.";
}
}