FlameAnvil Project Sync (#481)

* FlameAnvil Project Sync

* Perm fixes

* Fix compile

* Fix clippy + run prepare
This commit is contained in:
Geometrically authored and GitHub committed 2022-11-20 19:50:14 -07:00
1 parent 589761bfd9
commit f259d81249
23 files changed
+2501 -1493

No files matched your search

+7
View File
@@ -89,6 +89,11 @@ pub struct Project {
/// A string of URLs to visual content featuring the project
pub gallery: Vec<GalleryItem>,
/// The project linked from FlameAnvil to sync with
pub flame_anvil_project: Option<i32>,
/// The user_id of the team member whose token
pub flame_anvil_user: Option<UserId>,
}
impl From<QueryProject> for Project {
@@ -153,6 +158,8 @@ impl From<QueryProject> for Project {
created: x.created,
})
.collect(),
flame_anvil_project: m.flame_anvil_project,
flame_anvil_user: m.flame_anvil_user.map(|x| x.into()),
}
}
}