aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/server-commands
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-07-12 10:53:46 +0200
committerChocobozzz <me@florianbigard.com>2023-07-12 10:56:07 +0200
commitd959b763f089ed4c1087aa4aeb824a8ef6743111 (patch)
treef4b5e77757fde022c91e415906bcf4619f8ec31c /shared/server-commands
parent88cde4392a27d5d37685a471f9bf83d537282c43 (diff)
downloadPeerTube-d959b763f089ed4c1087aa4aeb824a8ef6743111.tar.gz
PeerTube-d959b763f089ed4c1087aa4aeb824a8ef6743111.tar.zst
PeerTube-d959b763f089ed4c1087aa4aeb824a8ef6743111.zip
Avoid duplicate runner names
Diffstat (limited to 'shared/server-commands')
-rw-r--r--shared/server-commands/runners/runners-command.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/shared/server-commands/runners/runners-command.ts b/shared/server-commands/runners/runners-command.ts
index ca9a1d7a3..b0083e841 100644
--- a/shared/server-commands/runners/runners-command.ts
+++ b/shared/server-commands/runners/runners-command.ts
@@ -1,4 +1,5 @@
1import { pick } from '@shared/core-utils' 1import { pick } from '@shared/core-utils'
2import { buildUUID } from '@shared/extra-utils'
2import { HttpStatusCode, RegisterRunnerBody, RegisterRunnerResult, ResultList, Runner, UnregisterRunnerBody } from '@shared/models' 3import { HttpStatusCode, RegisterRunnerBody, RegisterRunnerResult, ResultList, Runner, UnregisterRunnerBody } from '@shared/models'
3import { unwrapBody } from '../requests' 4import { unwrapBody } from '../requests'
4import { AbstractCommand, OverrideCommandOptions } from '../shared' 5import { AbstractCommand, OverrideCommandOptions } from '../shared'
@@ -68,7 +69,7 @@ export class RunnersCommand extends AbstractCommand {
68 const { data } = await this.server.runnerRegistrationTokens.list({ sort: 'createdAt' }) 69 const { data } = await this.server.runnerRegistrationTokens.list({ sort: 'createdAt' })
69 70
70 const { runnerToken } = await this.register({ 71 const { runnerToken } = await this.register({
71 name: 'runner', 72 name: 'runner ' + buildUUID(),
72 registrationToken: data[0].registrationToken 73 registrationToken: data[0].registrationToken
73 }) 74 })
74 75