msg => message

This commit is contained in:
folex
2019-08-16 19:47:38 +03:00
parent 0fafa8661b
commit 8ca166aaf8
16 changed files with 64 additions and 68 deletions

View File

@ -35,9 +35,9 @@ fn run(arg: String) -> String {
api::serialize(&result)
}
fn add_post(msg: String, username: String) -> AppResult<Response> {
fn add_post(message: String, username: String) -> AppResult<Response> {
// Store post
model::add_post(msg, username)?;
model::add_post(message, username)?;
// Get total number of posts
let count = model::get_posts_count()?;

View File

@ -6,8 +6,8 @@ pub fn create_scheme() -> AppResult<()> {
Ok(log::info!("creating scheme"))
}
pub fn add_post(msg: String, username: String) -> AppResult<()> {
Ok(log::info!("add post {} {}", msg, username))
pub fn add_post(message: String, username: String) -> AppResult<()> {
Ok(log::info!("add post {} {}", message, username))
}
pub fn get_all_posts() -> AppResult<String> {