Specified uft-8 format for string

ref #112
This commit is contained in:
Nicolai Ort 2021-01-21 17:54:11 +01:00
parent 7b00b19fce
commit 34c852b12a
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ export class RunnerSelfServiceController {
* @param token The organisation's registration api token.
*/
private async getOrgansisation(token: string): Promise<RunnerGroup> {
token = Buffer.from(token, 'base64').toString();
token = Buffer.from(token, 'base64').toString('utf8');
const organisation = await this.orgRepository.findOne({ key: token });
if (!organisation) { throw new RunnerOrganisationNotFoundError; }