Return new version in downgrade()

This commit is contained in:
hgw 2023-12-03 02:26:10 +00:00
parent 01ab326e52
commit 90f53da088
Signed by: hgw
SSH Key Fingerprint: SHA256:diG7RVYHjd3aDYkZWHYcBJbImu+6zfptuUP+3k/wol4
1 changed files with 1 additions and 1 deletions

View File

@ -322,7 +322,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) {