Fix bug that lost photos when updating activities and work items
This commit is contained in:
@@ -2,8 +2,8 @@ import React from "react"
|
|||||||
import { Platform } from "react-native"
|
import { Platform } from "react-native"
|
||||||
|
|
||||||
export const config = {
|
export const config = {
|
||||||
//localIPAddr: "192.168.1.175",
|
localIPAddr: "192.168.1.175",
|
||||||
localIPAddr: "192.168.1.14",
|
//localIPAddr: "192.168.1.14",
|
||||||
viroAPIKey: "06F37B6A-74DA-4A83-965A-7DE2209A5C46",
|
viroAPIKey: "06F37B6A-74DA-4A83-965A-7DE2209A5C46",
|
||||||
googleGeocodeAPIKey: "AIzaSyCs4JVT6gysnY5dAJ7KjVJYeykLv_xz1GI",
|
googleGeocodeAPIKey: "AIzaSyCs4JVT6gysnY5dAJ7KjVJYeykLv_xz1GI",
|
||||||
googleGeocodeURL: "https://maps.googleapis.com/maps/api/geocode/json",
|
googleGeocodeURL: "https://maps.googleapis.com/maps/api/geocode/json",
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ export let activitySchema = new Schema(
|
|||||||
notes: { type: String, required: true },
|
notes: { type: String, required: true },
|
||||||
fromStreetNumber: Number,
|
fromStreetNumber: Number,
|
||||||
toStreetNumber: Number,
|
toStreetNumber: Number,
|
||||||
photos: [Schema.Types.ObjectId],
|
photos: { type: [Schema.Types.ObjectId], default: undefined },
|
||||||
},
|
},
|
||||||
{ timestamps: true, id: false }
|
{ timestamps: true, id: false }
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ export const workItemSchema = new Schema(
|
|||||||
coordinates: [Number],
|
coordinates: [Number],
|
||||||
},
|
},
|
||||||
address: String,
|
address: String,
|
||||||
photos: [{ type: Schema.Types.ObjectId }],
|
photos: [{ type: Schema.Types.ObjectId, default: undefined }],
|
||||||
details: String,
|
details: String,
|
||||||
ticketNumber: { type: Number, default: 0 },
|
ticketNumber: { type: Number, default: 0 },
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user