mirror of
https://github.com/immich-app/immich.git
synced 2025-01-21 00:52:43 -05:00
fix(server): access face count when the value is undefined (#7694)
This commit is contained in:
parent
cd058fdafa
commit
e823b39579
1 changed files with 4 additions and 0 deletions
|
@ -223,6 +223,10 @@ export class PersonRepository implements IPersonRepository {
|
||||||
.having('COUNT(face.assetId) != 0')
|
.having('COUNT(face.assetId) != 0')
|
||||||
.getRawOne();
|
.getRawOne();
|
||||||
|
|
||||||
|
if (items == undefined) {
|
||||||
|
return { total: 0, hidden: 0 };
|
||||||
|
}
|
||||||
|
|
||||||
const result: PeopleStatistics = {
|
const result: PeopleStatistics = {
|
||||||
total: items.total ?? 0,
|
total: items.total ?? 0,
|
||||||
hidden: items.hidden ?? 0,
|
hidden: items.hidden ?? 0,
|
||||||
|
|
Loading…
Add table
Reference in a new issue