fix: import labels lookup label properly
Some checks are pending
Test / build (map[name:nightly]) (push) Successful in 4m22s
Test / build (map[name:stable]) (push) Successful in 3m58s
Release Please / Release-plz (push) Waiting to run

This commit is contained in:
Paul Campbell 2024-12-23 09:44:02 +00:00
parent cb579f5091
commit b62060880b

View file

@ -18,7 +18,7 @@ use crate::{
FullCtx,
};
pub(super) struct LabelsActor {
pub(crate) struct LabelsActor {
ctx: FullCtx,
nextcloud_board_id: NextcloudBoardId,
lookup: HashMap<NextcloudLabelTitle, NextcloudLabelId>,
@ -87,7 +87,7 @@ impl Message<LookupNextcloudLabelId> for LabelsActor {
tracing::info!(?label, "created");
self.lookup.insert(label.title.clone(), label.id);
self.lookup
.get(&NextcloudLabelTitle::new(msg.trello_name.as_ref()))
.get(&label.title)
.expect("label was just inserted")
}
};