This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

Merge branch 'feature/graph-view-20260304' into development

+5 -22
+5 -22
src/modules/cards/infrastructure/repositories/query-services/GraphQueryService.ts
··· 164 164 .select({ 165 165 followerId: follows.followerId, 166 166 targetId: follows.targetId, 167 - createdAt: follows.createdAt, 168 167 }) 169 168 .from(follows) 170 169 .where(eq(follows.targetType, 'user')); ··· 174 173 source: `user:${row.followerId}`, 175 174 target: `user:${row.targetId}`, 176 175 type: 'USER_FOLLOWS_USER' as const, 177 - metadata: { 178 - createdAt: row.createdAt.toISOString(), 179 - }, 176 + metadata: {}, 180 177 })); 181 178 } 182 179 ··· 185 182 .select({ 186 183 followerId: follows.followerId, 187 184 targetId: follows.targetId, 188 - createdAt: follows.createdAt, 189 185 }) 190 186 .from(follows) 191 187 .where(eq(follows.targetType, 'collection')); ··· 195 191 source: `user:${row.followerId}`, 196 192 target: `collection:${row.targetId}`, 197 193 type: 'USER_FOLLOWS_COLLECTION' as const, 198 - metadata: { 199 - createdAt: row.createdAt.toISOString(), 200 - }, 194 + metadata: {}, 201 195 })); 202 196 } 203 197 ··· 206 200 .select({ 207 201 authorId: cards.authorId, 208 202 url: cards.url, 209 - createdAt: cards.createdAt, 210 203 }) 211 204 .from(cards) 212 205 .where(and(eq(cards.type, 'URL'), sql`${cards.url} IS NOT NULL`)); ··· 216 209 source: `user:${row.authorId}`, 217 210 target: `url:${row.url}`, 218 211 type: 'USER_AUTHORED_URL' as const, 219 - metadata: { 220 - createdAt: row.createdAt.toISOString(), 221 - }, 212 + metadata: {}, 222 213 })); 223 214 } 224 215 ··· 227 218 const results = await this.db.execute<{ 228 219 note_id: string; 229 220 parent_url: string; 230 - created_at: Date; 231 221 }>(sql` 232 222 SELECT 233 223 note_cards.id as note_id, 234 - parent_cards.url as parent_url, 235 - note_cards.created_at 224 + parent_cards.url as parent_url 236 225 FROM cards as note_cards 237 226 INNER JOIN cards as parent_cards 238 227 ON note_cards.parent_card_id = parent_cards.id ··· 246 235 source: `note:${row.note_id}`, 247 236 target: `url:${row.parent_url}`, 248 237 type: 'NOTE_REFERENCES_URL' as const, 249 - metadata: { 250 - createdAt: row.created_at.toISOString(), 251 - }, 238 + metadata: {}, 252 239 })); 253 240 } 254 241 ··· 258 245 collectionId: collectionCards.collectionId, 259 246 cardId: collectionCards.cardId, 260 247 url: cards.url, 261 - addedAt: collectionCards.addedAt, 262 248 addedBy: collectionCards.addedBy, 263 249 }) 264 250 .from(collectionCards) ··· 271 257 target: `url:${row.url}`, 272 258 type: 'COLLECTION_CONTAINS_URL' as const, 273 259 metadata: { 274 - addedAt: row.addedAt.toISOString(), 275 260 addedBy: row.addedBy, 276 261 }, 277 262 })); ··· 286 271 connectionType: connections.connectionType, 287 272 note: connections.note, 288 273 curatorId: connections.curatorId, 289 - createdAt: connections.createdAt, 290 274 }) 291 275 .from(connections) 292 276 .where( ··· 305 289 connectionType: row.connectionType, 306 290 note: row.note, 307 291 curatorId: row.curatorId, 308 - createdAt: row.createdAt.toISOString(), 309 292 }, 310 293 })); 311 294 }