mirror of
https://github.com/block/buzz.git
synced 2026-11-30 21:21:48 +00:00
fix(projects): satisfy current clippy
Signed-off-by: John Tennant <jtennant@squareup.com>
This commit is contained in:
@@ -367,13 +367,10 @@ async fn current_project_revision(
|
||||
})
|
||||
.collect();
|
||||
let mut current = project.id.to_hex();
|
||||
loop {
|
||||
let Some((event_id, revision)) = parsed
|
||||
.iter()
|
||||
.find(|(_, revision)| revision.expected_revision == current)
|
||||
else {
|
||||
break;
|
||||
};
|
||||
while let Some((event_id, revision)) = parsed
|
||||
.iter()
|
||||
.find(|(_, revision)| revision.expected_revision == current)
|
||||
{
|
||||
apply_project_revision(
|
||||
&mut related_channels,
|
||||
home_channel,
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
use buzz_core::kind::KIND_PROJECT;
|
||||
use buzz_core::project_revision::{apply_project_revision, can_manage_project, ProjectRevision};
|
||||
use buzz_core::CommunityId;
|
||||
use chrono::{DateTime, Utc};
|
||||
use chrono::Utc;
|
||||
use nostr::Event;
|
||||
use sqlx::Row;
|
||||
use uuid::Uuid;
|
||||
@@ -229,7 +229,7 @@ impl Db {
|
||||
.bind(&base_id)
|
||||
.bind(event.id.as_bytes().as_slice())
|
||||
.bind(&channels)
|
||||
.bind(DateTime::<Utc>::from(Utc::now()))
|
||||
.bind(Utc::now())
|
||||
.execute(&mut *tx)
|
||||
.await?;
|
||||
tx.commit().await?;
|
||||
|
||||
Reference in New Issue
Block a user