A decentralized music tracking and discovery platform built on AT Protocol 🎵

fix: update shout ID references to use xata_id for consistency in queries

+6 -6
+6 -6
apps/api/src/users/app.ts
··· 1107 EXISTS ( 1108 SELECT 1 1109 FROM ${tables.shoutLikes} 1110 - WHERE ${tables.shoutLikes}.shout_id = ${tables.shouts}.id 1111 AND ${tables.shoutLikes}.user_id = ${user.id} 1112 )`.as("liked"), 1113 } ··· 1192 EXISTS ( 1193 SELECT 1 1194 FROM ${tables.shoutLikes} 1195 - WHERE ${tables.shoutLikes}.shout_id = ${tables.shouts}.id 1196 AND ${tables.shoutLikes}.user_id = ${user.id} 1197 )`.as("liked"), 1198 } ··· 1277 EXISTS ( 1278 SELECT 1 1279 FROM ${tables.shoutLikes} 1280 - WHERE ${tables.shoutLikes}.shout_id = ${tables.shouts}.id 1281 AND ${tables.shoutLikes}.user_id = ${user.id} 1282 )`.as("liked"), 1283 } ··· 1362 EXISTS ( 1363 SELECT 1 1364 FROM ${tables.shoutLikes} 1365 - WHERE ${tables.shoutLikes}.shout_id = ${tables.shouts}.id 1366 AND ${tables.shoutLikes}.user_id = ${user.id} 1367 )`.as("liked"), 1368 } ··· 1450 EXISTS ( 1451 SELECT 1 1452 FROM ${tables.shoutLikes} 1453 - WHERE ${tables.shoutLikes}.shout_id = ${tables.shouts}.id 1454 AND ${tables.shoutLikes}.user_id = ${user.id} 1455 )`.as("liked"), 1456 reported: sql<boolean>` 1457 EXISTS ( 1458 SELECT 1 1459 FROM ${tables.shoutReports} 1460 - WHERE ${tables.shoutReports}.shout_id = ${tables.shouts}.id 1461 AND ${tables.shoutReports}.user_id = ${user.id} 1462 )`.as("reported"), 1463 }
··· 1107 EXISTS ( 1108 SELECT 1 1109 FROM ${tables.shoutLikes} 1110 + WHERE ${tables.shoutLikes}.shout_id = ${tables.shouts}.xata_id 1111 AND ${tables.shoutLikes}.user_id = ${user.id} 1112 )`.as("liked"), 1113 } ··· 1192 EXISTS ( 1193 SELECT 1 1194 FROM ${tables.shoutLikes} 1195 + WHERE ${tables.shoutLikes}.shout_id = ${tables.shouts}.xata_id 1196 AND ${tables.shoutLikes}.user_id = ${user.id} 1197 )`.as("liked"), 1198 } ··· 1277 EXISTS ( 1278 SELECT 1 1279 FROM ${tables.shoutLikes} 1280 + WHERE ${tables.shoutLikes}.shout_id = ${tables.shouts}.xata_id 1281 AND ${tables.shoutLikes}.user_id = ${user.id} 1282 )`.as("liked"), 1283 } ··· 1362 EXISTS ( 1363 SELECT 1 1364 FROM ${tables.shoutLikes} 1365 + WHERE ${tables.shoutLikes}.shout_id = ${tables.shouts}.xata_id 1366 AND ${tables.shoutLikes}.user_id = ${user.id} 1367 )`.as("liked"), 1368 } ··· 1450 EXISTS ( 1451 SELECT 1 1452 FROM ${tables.shoutLikes} 1453 + WHERE ${tables.shoutLikes}.shout_id = ${tables.shouts}.xata_id 1454 AND ${tables.shoutLikes}.user_id = ${user.id} 1455 )`.as("liked"), 1456 reported: sql<boolean>` 1457 EXISTS ( 1458 SELECT 1 1459 FROM ${tables.shoutReports} 1460 + WHERE ${tables.shoutReports}.shout_id = ${tables.shouts}.xata_id 1461 AND ${tables.shoutReports}.user_id = ${user.id} 1462 )`.as("reported"), 1463 }