server: also search human readable URL
All checks were successful
ci/woodpecker/push/lint-backend Pipeline was successful
ci/woodpecker/push/lint-foundkey-js Pipeline was successful
ci/woodpecker/push/lint-client Pipeline was successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/lint-sw Pipeline was successful
ci/woodpecker/push/test Pipeline was successful

Changelog: Fixed
This commit is contained in:
Johann150 2023-01-23 18:05:17 +01:00
parent 78f5ca3792
commit 66ec875624
Signed by: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -62,9 +62,11 @@ export class DbResolver {
id: parsed.id,
});
} else {
return await Notes.findOneBy({
return await Notes.findOneBy([{
uri: parsed.uri,
});
}, {
url: parsed.uri,
}]);
}
}