Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
storytellerF committed Feb 16, 2025
1 parent 61308c8 commit d4f439b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
3 changes: 1 addition & 2 deletions backend/src/main/kotlin/com/storyteller_f/tables/Topics.kt
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,10 @@ suspend fun DatabaseFactory.getTopicInfo(topicId: PrimaryKey?, aid: String?, uid
}
.where {
when {
topicId != null ->Topics.id eq topicId
topicId != null -> Topics.id eq topicId
aid != null -> Aids.value eq aid
else -> throw CustomBadRequestException("aid and id is null")
}

}
.groupBy(Topics.id)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,15 @@ import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
import androidx.compose.runtime.produceState
import androidx.compose.runtime.remember
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.unit.dp
import com.storyteller_f.a.app.LocalAppNav
import com.storyteller_f.a.app.common.RefCellStateView
import com.storyteller_f.a.app.compontents.TopicContentField
import com.storyteller_f.a.app.compontents.UserIcon
import com.storyteller_f.a.app.model.TopicViewModel
import com.storyteller_f.a.app.model.createTopicViewModel
import com.storyteller_f.a.app.model.createUserViewModel
import com.storyteller_f.shared.model.TopicContent
import com.storyteller_f.shared.model.TopicInfo
import com.storyteller_f.shared.type.PrimaryKey
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,7 @@ suspend fun getTopicByAid(
value.copy(hasJoined = hasJoined)
}
}

}

}

suspend fun getTopLevelTopicsInObject(
Expand Down

0 comments on commit d4f439b

Please sign in to comment.