# Trouve le bug : React Native > Un extrait de code. Trouve le bug, ou prouve qu'il n'y en a pas. Défi du jour: 2026-08-19 (UTC) · Confirmé ```tsx import * as SQLite from 'expo-sqlite' const db = SQLite.openDatabaseSync('blog.db') type Post = { id: number; title: string; author_id: number } export async function loadPostsWithAuthors() { const posts = await db.getAllAsync('SELECT id, title, author_id FROM posts') const enriched = [] for (const post of posts) { const author = await db.getFirstAsync( 'SELECT name FROM users WHERE id = ?', post.author_id ) enriched.push({ ...post, author }) } return enriched } ``` ## Ton verdict - Faille de sécurité - Bug de logique - Style de code - Aucun problème Une tentative par jour. La réponse s'affiche juste après. --- Source: SharpSkill (https://sharpskill.dev), tech interview preparation for your real stack. HTML version of this page: https://sharpskill.dev/fr/defi-du-jour/react-native