mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
force cleanup previous records
This commit is contained in:
parent
5dbb1fad0d
commit
ab21f58adb
1 changed files with 7 additions and 0 deletions
|
|
@ -132,6 +132,13 @@ int Request::restore(
|
|||
int Request::save(
|
||||
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(
|
||||
db,
|
||||
APP_BROWSER_MAIN_TAB_PAGE_NAVIGATION__SESSION__ID,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue