mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-15 13:16:56 +00:00
return helpful message instead of empty message if no backups
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
1 parent
b036a4fa75
commit
59cdec4932
1 file changed
+4
@@ -1875,6 +1875,10 @@ impl Service {
|
||||
ServerCommand::ListBackups => {
|
||||
let result = services().globals.db.backup_list()?;
|
||||
|
||||
if result.is_empty() {
|
||||
return Ok(RoomMessageEventContent::text_plain("No backups found."));
|
||||
}
|
||||
|
||||
RoomMessageEventContent::text_plain(result)
|
||||
},
|
||||
ServerCommand::BackupDatabase => {
|
||||
|
||||
Reference in new issue
Block a user