Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
ouyangkang committed Mar 11, 2024
1 parent a62648f commit 35e00ae
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/bmrlab/muse-credits:v0.6 as github-credits
FROM ghcr.io/bmrlab/muse-credits:v0.7 as github-credits

ENV start_params=" "

Expand Down
2 changes: 1 addition & 1 deletion config/development.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ database:
# Redis Configuration
redis:
# Redis connection URI
uri: {{ get_env(name="REDIS_URL", default="redis://:SSVFDKBJNDFNJ%[email protected]:6379") }}
uri: {{ get_env(name="REDIS_URL", default="redis://127.0.0.1") }}
# Dangerously flush all data in Redis on startup. dangerous operation, make sure that you using this flag only on dev environments or test mode
dangerously_flush: false

Expand Down
8 changes: 4 additions & 4 deletions migration/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
pub use sea_orm_migration::prelude::*;

pub struct Migrator;
mod m20240221_062832_wallets;
mod m20240221_062832_wallet;
mod m20240221_064740_index_wallet_addr;
mod m20240222_033407_bills;
mod m20240222_033407_bill;
mod m20240222_033749_transaction_events;

#[async_trait::async_trait]
impl MigratorTrait for Migrator {
fn migrations() -> Vec<Box<dyn MigrationTrait>> {
vec![
Box::new(m20240221_062832_wallets::Migration),
Box::new(m20240221_062832_wallet::Migration),
Box::new(m20240221_064740_index_wallet_addr::Migration),
Box::new(m20240222_033407_bills::Migration),
Box::new(m20240222_033407_bill::Migration),
Box::new(m20240222_033749_transaction_events::Migration),
]
}
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/controllers/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ async fn transation_process(
let from_res = &txn
.execute(Statement::from_sql_and_values(
sea_orm::DatabaseBackend::MySql,
"update wallets set balance = ?, updated_at=? where addr = ? and balance = ?",
"update wallet set balance = ?, updated_at=? where addr = ? and balance = ?",
[
from_balance.into(),
now.into(),
Expand All @@ -192,7 +192,7 @@ async fn transation_process(
let to_res = &txn
.execute(Statement::from_sql_and_values(
sea_orm::DatabaseBackend::MySql,
"update wallets set balance = ?, updated_at=? where addr = ? and balance = ?",
"update wallet set balance = ?, updated_at=? where addr = ? and balance = ?",
[
to_balance.into(),
now.into(),
Expand Down

0 comments on commit 35e00ae

Please sign in to comment.