mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-03-12 13:41:34 +00:00
force cleanup previous records
This commit is contained in:
parent
5dbb1fad0d
commit
ab21f58adb
@ -132,6 +132,13 @@ int Request::restore(
|
|||||||
int Request::save(
|
int Request::save(
|
||||||
const sqlite3_int64 & APP_BROWSER_MAIN_TAB_PAGE_NAVIGATION__SESSION__ID
|
const sqlite3_int64 & APP_BROWSER_MAIN_TAB_PAGE_NAVIGATION__SESSION__ID
|
||||||
) {
|
) {
|
||||||
|
// Delete previous records
|
||||||
|
DB::SESSION::clean(
|
||||||
|
db,
|
||||||
|
APP_BROWSER_MAIN_TAB_PAGE_NAVIGATION__SESSION__ID
|
||||||
|
);
|
||||||
|
|
||||||
|
// Add new record
|
||||||
return DB::SESSION::add(
|
return DB::SESSION::add(
|
||||||
db,
|
db,
|
||||||
APP_BROWSER_MAIN_TAB_PAGE_NAVIGATION__SESSION__ID,
|
APP_BROWSER_MAIN_TAB_PAGE_NAVIGATION__SESSION__ID,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user