Add TELEGRAM_API_URL support, improve error handling in video metadata retrieval and fixing migration rollback
Some checks are pending
Docker Push / docker (push) Waiting to run

This commit is contained in:
Shiroyasha 2025-02-08 15:18:22 +03:00
parent 655e195c91
commit fa125b47fb
Signed by: shiroyashik
GPG key ID: E4953D3940D7860A
7 changed files with 319 additions and 214 deletions

View file

@ -108,22 +108,22 @@ impl MigrationTrait for Migration {
}
async fn down(&self, manager: &SchemaManager) -> Result<(), DbErr> {
// Videos
// Actions
manager
.drop_table(Table::drop().table(Videos::Table).to_owned())
.drop_table(Table::drop().table(Actions::Table).to_owned())
.await?;
// Requests
manager
.drop_table(Table::drop().table(Requests::Table).to_owned())
.await?;
// Actions
manager
.drop_table(Table::drop().table(Actions::Table).to_owned())
.await?;
// Archived
manager
.drop_table(Table::drop().table(Archived::Table).to_owned())
.await?;
// Videos
manager
.drop_table(Table::drop().table(Videos::Table).to_owned())
.await?;
// Moderators
manager
.drop_table(Table::drop().table(Moderators::Table).to_owned())