fix
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
use axum::http::StatusCode;
|
||||
use chrono::Utc;
|
||||
use diesel::{pg::PgConnection, prelude::*, OptionalExtension};
|
||||
use diesel::{pg::PgConnection, prelude::*, Connection, OptionalExtension};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use uuid::Uuid;
|
||||
|
||||
@@ -19,7 +19,6 @@ use crate::{
|
||||
capability_sets::{self, dsl as cs_dsl},
|
||||
user_memberships,
|
||||
},
|
||||
services::TransactionExt,
|
||||
utils::text::normalize_identifier,
|
||||
};
|
||||
|
||||
@@ -156,7 +155,7 @@ impl CapabilitySetService {
|
||||
return ok_json(to_response(set, capabilities));
|
||||
}
|
||||
|
||||
let set = conn.app_transaction(|conn| {
|
||||
let set = conn.transaction::<CapabilitySet, AppError, _>(|conn| {
|
||||
let mut working = set.clone();
|
||||
|
||||
if let Some(slug) = &payload.slug {
|
||||
|
||||
Reference in New Issue
Block a user