Revert Deno processing

This commit is contained in:
Marcin Czop 2025-01-30 05:39:07 +01:00
parent cf635e6f7c
commit aeda648869
No known key found for this signature in database
GPG key ID: 44BCC84471234D0D
2 changed files with 1 additions and 3 deletions

2
.gitignore vendored
View file

@ -87,4 +87,4 @@ typings/
# DynamoDB Local files
.dynamodb/
*.sqlite
*.sqlite*

View file

@ -72,8 +72,6 @@ app.post("/api/v1/geosubmit", async (c) => {
const hexInDb = db.prepare("SELECT * FROM hexes WHERE hex_id = ?").get(hex) as { hex_id: string; wifi: boolean; gsm: boolean; wcdma: boolean; lte: boolean; ble: boolean; last_update: number } | undefined;
if (hexInDb && hexInDb.last_update >= timestamp && hexInDb.wifi === hasWifi && hexInDb.gsm === hasGsm && hexInDb.wcdma === hasWcdma && hexInDb.lte === hasLte && hexInDb.ble === hasBle) return;
if (hexInDb) {
db.prepare(
`