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

This is a fixup for commit 48fd543d0f.

closes #365
This commit is contained in:
Johann150 2023-03-22 18:30:56 +01:00
parent 48363a90ef
commit f1d7357e75
Signed by: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -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 {