- corretto img profilo

- corretto coordinata non obbligatoria
This commit is contained in:
Surya Paolo
2024-09-17 18:49:55 +02:00
parent 9985793fcc
commit 73cf28ebc2
2 changed files with 3 additions and 3 deletions

View File

@@ -100,11 +100,11 @@ const AttivitaSchema = new Schema(
type: { type: {
type: String, type: String,
enum: ['Point'], // Specifica il tipo, in questo caso solo 'Point' enum: ['Point'], // Specifica il tipo, in questo caso solo 'Point'
required: true required: false,
}, },
coordinates: { coordinates: {
type: [Number], // L'array dovrebbe contenere lon e lat type: [Number], // L'array dovrebbe contenere lon e lat
required: true, required: false,
index: '2dsphere' // Indice geospaziale [lng, lat] index: '2dsphere' // Indice geospaziale [lng, lat]
}, },
}, },

View File

@@ -1 +1 @@
1.0.60 1.0.61