This commit is contained in:
1 parent
e1129c305e
commit
82b63c65e7
1 file changed
+1
-4
@@ -77,7 +77,6 @@ export async function fetchAnalytics(platform: App.Platform | undefined) {
|
|||||||
if (d1Id) {
|
if (d1Id) {
|
||||||
d1Query = `
|
d1Query = `
|
||||||
d1AnalyticsAdaptiveGroups(
|
d1AnalyticsAdaptiveGroups(
|
||||||
limit: 10000,
|
|
||||||
filter: { date_geq: "${thirtyDaysAgo}", databaseId: "${d1Id}" }
|
filter: { date_geq: "${thirtyDaysAgo}", databaseId: "${d1Id}" }
|
||||||
) {
|
) {
|
||||||
sum {
|
sum {
|
||||||
@@ -94,9 +93,7 @@ export async function fetchAnalytics(platform: App.Platform | undefined) {
|
|||||||
if (r2Bucket) {
|
if (r2Bucket) {
|
||||||
r2Query = `
|
r2Query = `
|
||||||
r2StorageAdaptiveGroups(
|
r2StorageAdaptiveGroups(
|
||||||
limit: 1,
|
filter: { datetime_geq: "${thirtyDaysAgo}T00:00:00Z", bucketName: "${r2Bucket}" }
|
||||||
filter: { datetime_geq: "${thirtyDaysAgo}T00:00:00Z", bucketName: "${r2Bucket}" },
|
|
||||||
orderBy: [datetime_DESC]
|
|
||||||
) {
|
) {
|
||||||
max {
|
max {
|
||||||
payloadSize
|
payloadSize
|
||||||
|
|||||||
Reference in new issue
Block a user