Skip to content

Commit

Permalink
resolve pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
prasunna09 committed Dec 28, 2024
1 parent f8d07b0 commit 7b3e8c5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions crates/diesel_models/src/callback_mapper.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use common_utils::pii;
use diesel::{Identifiable, Insertable, Queryable, Selectable};
use serde::{self, Deserialize, Serialize};

use crate::schema::callback_mapper;

Expand All @@ -12,14 +11,11 @@ use crate::schema::callback_mapper;
Identifiable,
Queryable,
Selectable,
Serialize,
Deserialize,
Insertable,
)]
#[diesel(table_name = callback_mapper, primary_key(id, type_), check_for_backend(diesel::pg::Pg))]
pub struct CallbackMapper {
pub id: String,
#[serde(rename = "type")]
pub type_: String,
pub data: pii::SecretSerdeValue,
pub created_at: time::PrimitiveDateTime,
Expand Down
2 changes: 1 addition & 1 deletion crates/diesel_models/src/query/callback_mapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use crate::{
};

impl CallbackMapper {
pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<CallbackMapper> {
pub async fn insert(self, conn: &PgPooledConn) -> StorageResult<Self> {
generics::generic_insert(conn, self).await
}

Expand Down

0 comments on commit 7b3e8c5

Please # to comment.