server: fix undefined variable in getOneApId
All checks were successful
ci/woodpecker/push/lint-backend Pipeline was successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/lint-foundkey-js Pipeline was successful
ci/woodpecker/push/lint-client Pipeline was successful
ci/woodpecker/push/lint-sw Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
All checks were successful
ci/woodpecker/push/lint-backend Pipeline was successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/lint-foundkey-js Pipeline was successful
ci/woodpecker/push/lint-client Pipeline was successful
ci/woodpecker/push/lint-sw Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
This is a fixup for commit 48fd543d0f
.
closes #365
This commit is contained in:
parent
48363a90ef
commit
f1d7357e75
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ export function getApId(value: string | Object): string {
|
|||
export function getOneApId(value: ApObject): string {
|
||||
if (Array.isArray(value)) {
|
||||
// find the first valid ID
|
||||
for (const id of value) {
|
||||
for (const x of value) {
|
||||
try {
|
||||
return getApId(x);
|
||||
} catch {
|
||||
|
|
Loading…
Reference in a new issue