79107492

Date: 2024-10-20 16:10:02
Score: 1.5
Natty:
Report link

After making some changes to some of my tests, the tests started reproducing the issue. It was actually, a different call than I originally thought.

adding @Transaction to the doa entry solved the issue:

so it now looks like:

@Query("UPDATE cursor_position SET cursorPosition = :cursorPosition, cursorLength = :cursorLength WHERE documentId = :documentId")
@Transaction
abstract suspend fun updateCursorPosition(
    documentId: String,
    cursorPosition: Int,
    cursorLength: Int
): Int
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @Transaction
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: johngray1965