e3bb8b19dd
Also improves migrations and updates the db schema docs. Signed-off-by: Michael Mayer <michael@photoprism.app>
19 lines
278 B
Go
19 lines
278 B
Go
package get
|
|
|
|
import (
|
|
"sync"
|
|
|
|
"github.com/photoprism/photoprism/internal/photoprism"
|
|
)
|
|
|
|
var oncePlaces sync.Once
|
|
|
|
func initPlaces() {
|
|
services.Places = photoprism.NewPlaces(Config())
|
|
}
|
|
|
|
func Places() *photoprism.Places {
|
|
oncePlaces.Do(initPlaces)
|
|
|
|
return services.Places
|
|
}
|