forked from FoundKeyGang/FoundKey
fixup: missing parenthesis
This commit is contained in:
parent
c7ab8839dc
commit
cd26e3a35c
1 changed files with 1 additions and 2 deletions
|
@ -90,10 +90,9 @@ function validateActor(x: IObject): IActor {
|
||||||
throw new Error('invalid Actor: publicKey.id is not a string');
|
throw new Error('invalid Actor: publicKey.id is not a string');
|
||||||
}
|
}
|
||||||
|
|
||||||
const publicKeyIdHost = extractDbHost(x.publicKey.id);
|
|
||||||
// This is a security critical check to not insert or change an entry of
|
// This is a security critical check to not insert or change an entry of
|
||||||
// UserPublickey to point to a local key id.
|
// UserPublickey to point to a local key id.
|
||||||
if (extractDbHost(uri) !== extractDbHost(x.publicKey.id) {
|
if (extractDbHost(uri) !== extractDbHost(x.publicKey.id)) {
|
||||||
throw new Error('invalid Actor: publicKey.id has different host');
|
throw new Error('invalid Actor: publicKey.id has different host');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue