Throw an error if workspace id has no object (#2857)

* Throw an error if workspace id has no object

* Request only plurial object names

* Fix tests

* Fix query

* Handle graphql errors
This commit is contained in:
martmull
2023-12-07 12:32:29 +01:00
committed by GitHub
parent 06936c3c2a
commit 3cd1ec21e6
9 changed files with 36 additions and 23 deletions
@@ -50,6 +50,10 @@ export class EnvironmentService {
return this.configService.get<string>('FRONT_BASE_URL')!;
}
getServerUrl(): string {
return this.configService.get<string>('SERVER_URL')!;
}
getAccessTokenSecret(): string {
return this.configService.get<string>('ACCESS_TOKEN_SECRET')!;
}
@@ -60,6 +60,11 @@ export class EnvironmentVariables {
@IsUrl({ require_tld: false })
FRONT_BASE_URL: string;
// Frontend URL
@IsUrl({ require_tld: false })
@IsOptional()
SERVER_URL: string;
// Json Web Token
@IsString()
ACCESS_TOKEN_SECRET: string;