mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-23 12:39:59 +01:00
✌️
This commit is contained in:
parent
0b4b9a2ef4
commit
8e6a772701
@ -51,6 +51,7 @@ export async function createPerson(value: any, resolver?: Resolver): Promise<IUs
|
|||||||
!isValidName(object.name == '' ? null : object.name) ||
|
!isValidName(object.name == '' ? null : object.name) ||
|
||||||
!isValidDescription(object.summary)
|
!isValidDescription(object.summary)
|
||||||
) {
|
) {
|
||||||
|
log(`invalid person: ${JSON.stringify(object, null, 2)}`);
|
||||||
throw new Error('invalid person');
|
throw new Error('invalid person');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user