- corretto img profilo
- corretto coordinata non obbligatoria
This commit is contained in:
@@ -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]
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
1.0.60
|
1.0.61
|
||||||
Reference in New Issue
Block a user