🐛 Fix Place without image update, 📝 add docker pull clue
This commit is contained in:
parent
22d0abd46e
commit
e4a9ede64c
@ -55,6 +55,10 @@ If you need help, feel free to open an [issue](https://github.com/itskovacs/trip
|
|||||||
> Packages are available in the [packages section](https://github.com/itskovacs/trip/pkgs/container/trip) of the repository for quickstart, using just `docker run`
|
> Packages are available in the [packages section](https://github.com/itskovacs/trip/pkgs/container/trip) of the repository for quickstart, using just `docker run`
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
# Ensure you have the latest
|
||||||
|
docker pull ghcr.io/itskovacs/trip:1
|
||||||
|
|
||||||
|
# Run the app
|
||||||
docker run -p 8080:8000 -v trip-storage:/app/storage ghcr.io/itskovacs/trip:1
|
docker run -p 8080:8000 -v trip-storage:/app/storage ghcr.io/itskovacs/trip:1
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
__version__ = "1.1.2"
|
__version__ = "1.1.3"
|
||||||
|
|||||||
@ -155,14 +155,7 @@ export class ApiService {
|
|||||||
putPlace(place_id: number, place: Partial<Place>): Observable<Place> {
|
putPlace(place_id: number, place: Partial<Place>): Observable<Place> {
|
||||||
return this.httpClient
|
return this.httpClient
|
||||||
.put<Place>(`${this.apiBaseUrl}/places/${place_id}`, place)
|
.put<Place>(`${this.apiBaseUrl}/places/${place_id}`, place)
|
||||||
.pipe(
|
.pipe(map((p) => this._normalizePlaceImage(p)));
|
||||||
map((place) => {
|
|
||||||
if (place.image) place.image = `${this.assetsBaseUrl}/${place.image}`;
|
|
||||||
else
|
|
||||||
place.image = `${this.assetsBaseUrl}/${(place.category as Category).image}`;
|
|
||||||
return place;
|
|
||||||
}),
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
deletePlace(place_id: number): Observable<null> {
|
deletePlace(place_id: number): Observable<null> {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user