mirror of
https://github.com/thelounge/thelounge
synced 2024-11-21 19:43:07 +00:00
sqlite: return new version in downgrade()
We want to give the caller the current version, not the last version we rolled back, fix that
This commit is contained in:
parent
ec75ff00cb
commit
d1561f8ebc
1 changed files with 1 additions and 1 deletions
|
@ -307,7 +307,7 @@ class SqliteMessageStorage implements SearchableMessageStorage {
|
|||
await this.delete_migrations_older_than(version);
|
||||
await this.update_version_in_db();
|
||||
|
||||
return _rollbacks.at(-1)!.version; // assert valid due to length guard above
|
||||
return version;
|
||||
}
|
||||
|
||||
async downgrade_to(version: number) {
|
||||
|
|
Loading…
Reference in a new issue