mirror of
https://github.com/modrinth/code.git
synced 2026-08-31 03:55:59 +00:00
Revert "Implement redis clustering (#5189)"
This reverts commit fb1050e409.
This commit is contained in:
@@ -256,16 +256,15 @@ impl DBOrganization {
|
||||
) -> Result<(), super::DatabaseError> {
|
||||
let mut redis = redis.connect().await?;
|
||||
|
||||
if let Some(slug) = slug {
|
||||
redis
|
||||
.delete(ORGANIZATIONS_TITLES_NAMESPACE, slug.to_lowercase())
|
||||
.await?;
|
||||
}
|
||||
|
||||
redis
|
||||
.delete(ORGANIZATIONS_NAMESPACE, id.0.to_string())
|
||||
.delete_many([
|
||||
(ORGANIZATIONS_NAMESPACE, Some(id.0.to_string())),
|
||||
(
|
||||
ORGANIZATIONS_TITLES_NAMESPACE,
|
||||
slug.map(|x| x.to_lowercase()),
|
||||
),
|
||||
])
|
||||
.await?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user