This commit is contained in:
jelveh 2024-10-18 17:50:25 -07:00
commit 8ed5db1734

View File

@ -91,7 +91,7 @@ class AppES extends BaseES {
( await old_entity.get('name') !== await entity.get('name') ); ( await old_entity.get('name') !== await entity.get('name') );
if ( throw_it && extra.options && extra.options.dedupe_name ) { if ( throw_it && extra.options && extra.options.dedupe_name ) {
const base = await entity.get('name'); const base = await entity.get('name');
let number = 0; let number = 1;
while ( await app_name_exists(`${base}-${number}`) ) { while ( await app_name_exists(`${base}-${number}`) ) {
number++; number++;
} }