NewPhoto should only set default IDs, not entities

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2020-06-04 21:55:00 +02:00
parent c0a3ab5ac5
commit 6564e7a548

View file

@ -90,13 +90,9 @@ func NewPhoto() Photo {
return Photo{ return Photo{
PhotoType: TypeImage, PhotoType: TypeImage,
PhotoCountry: UnknownCountry.ID, PhotoCountry: UnknownCountry.ID,
Camera: &UnknownCamera,
CameraID: UnknownCamera.ID, CameraID: UnknownCamera.ID,
Lens: &UnknownLens,
LensID: UnknownLens.ID, LensID: UnknownLens.ID,
Location: &UnknownLocation,
LocationID: UnknownLocation.ID, LocationID: UnknownLocation.ID,
Place: &UnknownPlace,
PlaceID: UnknownPlace.ID, PlaceID: UnknownPlace.ID,
} }
} }