adjust alias cleanup
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
b306a7f727
commit
fb29813345
@ -56,8 +56,8 @@ export class AliasesService<ServiceParams extends AliasesParams = AliasesParams>
|
|||||||
async create(data: AliasesData, params: ServiceParams): Promise<Alias | Alias[]> {
|
async create(data: AliasesData, params: ServiceParams): Promise<Alias | Alias[]> {
|
||||||
const userId = await this.getUserIdByEmailAddress(params)
|
const userId = await this.getUserIdByEmailAddress(params)
|
||||||
const aliasFirstPart = faker.animal.crocodilia()
|
const aliasFirstPart = faker.animal.crocodilia()
|
||||||
.replace(/\D/, '')
|
.replace(/\D/g, '')
|
||||||
.replace(/\s/, '')
|
.replace(/\s/g, '')
|
||||||
.slice(0, 10);
|
.slice(0, 10);
|
||||||
|
|
||||||
const aliasSecondPart = faker.git.commitSha({ length: 5 });
|
const aliasSecondPart = faker.git.commitSha({ length: 5 });
|
||||||
|
Loading…
Reference in New Issue
Block a user