further improvements for the mobile admin
This commit is contained in:
@@ -149,6 +149,7 @@ export type PhotoboothStatusMetrics = {
|
||||
uploads_last_hour?: number | null;
|
||||
uploads_today?: number | null;
|
||||
uploads_total?: number | null;
|
||||
uploads_24h?: number | null;
|
||||
last_upload_at?: string | null;
|
||||
};
|
||||
|
||||
@@ -1235,6 +1236,7 @@ function normalizePhotoboothStatus(payload: JsonValue): PhotoboothStatus {
|
||||
uploads_last_hour: readNumber('uploads_last_hour') ?? readNumber('last_hour') ?? readNumber('hour'),
|
||||
uploads_today: readNumber('uploads_today') ?? readNumber('today'),
|
||||
uploads_total: readNumber('uploads_total') ?? readNumber('total'),
|
||||
uploads_24h: readNumber('uploads_24h') ?? readNumber('uploads_today') ?? readNumber('today'),
|
||||
last_upload_at: typeof record.last_upload_at === 'string' ? record.last_upload_at : null,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user