mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-04-25 07:07:32 -04:00
chore: remove unused code
This commit is contained in:
parent
72fc0cce07
commit
d478ecfd41
20 changed files with 69 additions and 409 deletions
|
@ -58,11 +58,11 @@ impl UserWorkspaceTable {
|
|||
pub fn select_user_workspace(
|
||||
workspace_id: &str,
|
||||
mut conn: DBConnection,
|
||||
) -> Option<UserWorkspaceTable> {
|
||||
user_workspace_table::dsl::user_workspace_table
|
||||
) -> FlowyResult<UserWorkspaceTable> {
|
||||
let row = user_workspace_table::dsl::user_workspace_table
|
||||
.filter(user_workspace_table::id.eq(workspace_id))
|
||||
.first::<UserWorkspaceTable>(&mut *conn)
|
||||
.ok()
|
||||
.first::<UserWorkspaceTable>(&mut *conn)?;
|
||||
Ok(row)
|
||||
}
|
||||
|
||||
pub fn select_all_user_workspace(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue