Skip to content

Commit

Permalink
fix: clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
X committed Apr 20, 2024
1 parent 7bd956c commit 528b208
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 20 deletions.
4 changes: 0 additions & 4 deletions src/backend/env/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,6 @@ pub struct State {

migrations: BTreeSet<UserId>,

// TODO: delete
#[serde(skip)]
pub posts_with_tags: Vec<PostId>,

#[serde(default)]
pub recent_tags: VecDeque<String>,

Expand Down
17 changes: 1 addition & 16 deletions src/backend/updates.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,22 +79,7 @@ fn post_upgrade() {
}

#[allow(clippy::all)]
fn sync_post_upgrade_fixtures() {
mutate(|state| {
// Resetting the report of @KeydaKorven (/post/1219744)
{
let _ = Post::mutate(state, &1180586, |post| {
post.report.take();
Ok(())
});
let Some(user) = state.users.get_mut(&3570) else {
return;
};
let _ = user.change_credits(1000, user::CreditsDelta::Plus, "report cancellation");
state.burned_cycles -= 1000;
}
})
}
fn sync_post_upgrade_fixtures() {}

#[allow(clippy::all)]
async fn async_post_upgrade_fixtures() {}
Expand Down

0 comments on commit 528b208

Please sign in to comment.