Merge branch 'main' into dev

This commit is contained in:
Owen 2025-04-01 22:49:39 -04:00
commit 302094771b
No known key found for this signature in database
GPG key ID: 8271FDFFD9E0CCBD

View file

@ -59,8 +59,8 @@ export const receiveBandwidth = async (
await trx
.update(sites)
.set({
megabytesOut: (site.megabytesIn || 0) + bytesIn,
megabytesIn: (site.megabytesOut || 0) + bytesOut,
megabytesOut: (site.megabytesOut || 0) + bytesIn,
megabytesIn: (site.megabytesIn || 0) + bytesOut,
lastBandwidthUpdate: new Date().toISOString(),
online
})