Skip to content

Commit

Permalink
Merge pull request #3608 from BlackDex/fix-issue-3607
Browse files Browse the repository at this point in the history
Fix send access regression
  • Loading branch information
dani-garcia committed Jun 22, 2023
2 parents 550794b + 3c0cac6 commit c56bf38
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/api/core/sends.rs
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,6 @@ pub struct SendAccessData {
async fn post_access(
access_id: &str,
data: JsonUpcase<SendAccessData>,
headers: Headers,
mut conn: DbConn,
ip: ClientIp,
nt: Notify<'_>,
Expand Down Expand Up @@ -423,7 +422,7 @@ async fn post_access(
UpdateType::SyncSendUpdate,
&send,
&send.update_users_revision(&mut conn).await,
&headers.device.uuid,
&String::from("00000000-0000-0000-0000-000000000000"),
&mut conn,
)
.await;
Expand All @@ -437,7 +436,6 @@ async fn post_access_file(
file_id: &str,
data: JsonUpcase<SendAccessData>,
host: Host,
headers: Headers,
mut conn: DbConn,
nt: Notify<'_>,
) -> JsonResult {
Expand Down Expand Up @@ -482,7 +480,7 @@ async fn post_access_file(
UpdateType::SyncSendUpdate,
&send,
&send.update_users_revision(&mut conn).await,
&headers.device.uuid,
&String::from("00000000-0000-0000-0000-000000000000"),
&mut conn,
)
.await;
Expand Down

0 comments on commit c56bf38

Please sign in to comment.