Skip to content

Commit

Permalink
Fix thread answers not shown (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
FelberMartin authored Oct 22, 2024
1 parent ef1ce4b commit 8e974f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ internal class MetisStorageServiceImpl(
)

insertOrUpdateAnswerPost(
isNewPost = queryClientPostIdAnswer != null,
isNewPost = queryClientPostIdAnswer == null,
answerPostClientSidePostId = queryClientPostIdAnswer ?: UUID.randomUUID()
.toString(),
answerPost = ap,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import de.tum.informatics.www1.artemis.native_app.feature.metis.shared.db.entiti
import de.tum.informatics.www1.artemis.native_app.feature.metis.shared.db.entities.PostReactionEntity
import de.tum.informatics.www1.artemis.native_app.feature.metis.shared.db.entities.StandalonePostTagEntity
import de.tum.informatics.www1.artemis.native_app.feature.metis.shared.db.entities.StandalonePostingEntity
import de.tum.informatics.www1.artemis.native_app.feature.metis.shared.db.pojo.AnswerPostPojo
import de.tum.informatics.www1.artemis.native_app.feature.metis.shared.db.pojo.PostPojo
import kotlinx.coroutines.flow.Flow
import kotlinx.datetime.Instant
Expand All @@ -34,7 +33,8 @@ interface MetisDao {
suspend fun clearAll(serverId: String)

/**
* Query the client side post if for the given metis context. Returns null if the given post is not yet stored.
* Query the client side post id for the given server side post id.
* Returns null if the given post is not yet stored.
* Note: Standalone posts and answer posts may have the same ids.
*/
@Query(
Expand Down

0 comments on commit 8e974f2

Please sign in to comment.