MAde uuid column unique

ref #112
This commit is contained in:
Nicolai Ort 2021-01-21 17:52:03 +01:00
parent ad446500f9
commit 7b00b19fce

View File

@ -32,7 +32,7 @@ export class RunnerOrganisation extends RunnerGroup {
* The api key can be used for the /runners/register/:token endpoint. * The api key can be used for the /runners/register/:token endpoint.
* Is has to be base64 encoded if used via the api (to keep url-safety). * Is has to be base64 encoded if used via the api (to keep url-safety).
*/ */
@Column({ nullable: true }) @Column({ nullable: true, unique: true })
@IsString() @IsString()
@IsOptional() @IsOptional()
key?: string; key?: string;