mirror of
https://github.com/simon987/sist2.git
synced 2025-04-19 18:26:43 +00:00
Make sure dateMin and dateMax are not equal with sqlite frontend
This commit is contained in:
parent
9698ea0c37
commit
786bbc3859
@ -421,7 +421,9 @@ class Sist2Api {
|
|||||||
return axios.get(`${this.baseUrl}fts/dateRange`)
|
return axios.get(`${this.baseUrl}fts/dateRange`)
|
||||||
.then(resp => ({
|
.then(resp => ({
|
||||||
min: resp.data.dateMin,
|
min: resp.data.dateMin,
|
||||||
max: resp.data.dateMax,
|
max: (resp.data.dateMax === resp.data.dateMin)
|
||||||
|
? resp.data.dateMax + 1
|
||||||
|
: resp.data.dateMax,
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -585,7 +587,7 @@ class Sist2Api {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
getTagSuggestions(prefix) {
|
getTagSuggestions(prefix) {
|
||||||
if (this.backend() === "sqlite") {
|
if (this.backend() === "sqlite") {
|
||||||
return this.getTagSuggestionsSqlite(prefix);
|
return this.getTagSuggestionsSqlite(prefix);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user