Skip to content

Instantly share code, notes, and snippets.

@pahill
Last active April 7, 2019 09:56
Show Gist options
  • Save pahill/706c54eb31565ae03281737abfc28baa to your computer and use it in GitHub Desktop.
Save pahill/706c54eb31565ae03281737abfc28baa to your computer and use it in GitHub Desktop.
override suspend fun findInspirationsByUserId(userId: Long): List<Inspiration> {
return dbQuery {
Inspirations.select { Inspirations.userId eq userId }.mapNotNull {
mapInspirationsToInspiration(it)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment