mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-25 10:13:08 +02:00
reformat
This commit is contained in:
parent
aa78c29e8c
commit
a74af07992
1 changed files with 1 additions and 1 deletions
|
@ -311,7 +311,7 @@ export class ApPersonService implements OnModuleInit {
|
|||
} catch (e) {
|
||||
// duplicate key error
|
||||
if (isDuplicateKeyValueError(e)) {
|
||||
// /users/@a => /users/:id のように入力がaliasなときにエラーになることがあるのを対応
|
||||
// /users/@a => /users/:id のように入力がaliasなときにエラーになることがあるのを対応
|
||||
const u = await this.usersRepository.findOneBy({ uri: person.id });
|
||||
if (u == null) throw new Error('already registered');
|
||||
|
||||
|
|
Loading…
Reference in a new issue