cleanup
This commit is contained in:
@@ -2,8 +2,6 @@ use anyhow::Result;
|
|||||||
use diesel::prelude::*;
|
use diesel::prelude::*;
|
||||||
use diesel::query_dsl::BelongingToDsl;
|
use diesel::query_dsl::BelongingToDsl;
|
||||||
|
|
||||||
use std::sync::Arc;
|
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
database::Database,
|
database::Database,
|
||||||
models::{
|
models::{
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ impl<'a> Settings<'a> {
|
|||||||
.values(SettingsRow { key: k, value: &bytes })
|
.values(SettingsRow { key: k, value: &bytes })
|
||||||
.on_conflict(key)
|
.on_conflict(key)
|
||||||
.do_update()
|
.do_update()
|
||||||
.set((value.eq(&bytes)))
|
.set(value.eq(&bytes))
|
||||||
.execute(&mut self.db.connection)?;
|
.execute(&mut self.db.connection)?;
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ use clap::Subcommand;
|
|||||||
use kordophone::APIInterface;
|
use kordophone::APIInterface;
|
||||||
use std::{env, path::PathBuf};
|
use std::{env, path::PathBuf};
|
||||||
|
|
||||||
use kordophone_db::{database::Database, repository::Repository, settings};
|
use kordophone_db::database::Database;
|
||||||
use crate::{client, printers::{ConversationPrinter, MessagePrinter}};
|
use crate::{client, printers::{ConversationPrinter, MessagePrinter}};
|
||||||
|
|
||||||
#[derive(Subcommand)]
|
#[derive(Subcommand)]
|
||||||
|
|||||||
Reference in New Issue
Block a user