use database::Database;
use endpoint::execute::ExecuteError;

pub fn execute_append(journal_name: &[u8], entry: &[u8], database: &Database)
                      -> Result<(), ExecuteError> {
    let journal = database.get_journal(journal_name)?;
    journal.append(entry)?;
    Ok(())
}
