mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-04-25 15:17:28 -04:00
chore: fix test
This commit is contained in:
parent
7e88a3897c
commit
db5e4766af
21 changed files with 297 additions and 278 deletions
|
@ -99,6 +99,17 @@ pub fn select_user_workspace(
|
|||
Ok(row)
|
||||
}
|
||||
|
||||
pub fn select_user_workspace_type(
|
||||
workspace_id: &str,
|
||||
conn: &mut SqliteConnection,
|
||||
) -> FlowyResult<AuthType> {
|
||||
let row = dsl::user_workspace_table
|
||||
.filter(user_workspace_table::id.eq(workspace_id))
|
||||
.select(user_workspace_table::workspace_type)
|
||||
.first::<i32>(conn)?;
|
||||
Ok(AuthType::from(row))
|
||||
}
|
||||
|
||||
pub fn select_all_user_workspace(
|
||||
uid: i64,
|
||||
conn: &mut SqliteConnection,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue