Skip to content

Commit d117fc5

Browse files
committed
More data
1 parent 43f8344 commit d117fc5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/controllers/snippets_controller.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,14 +663,16 @@ export default class SnippetsController {
663663
}
664664

665665
const snippet = await Snippet.query()
666-
.select('publicId', 'image', 'updatedAt')
666+
.select('publicId', 'image', 'updatedAt', 'title', 'description')
667667
.orderBy('updatedAt', 'desc')
668668
.limit(10000)
669669

670670
return snippet.map((snip) => ({
671671
id: snip.publicId,
672672
image: snip.getImage(),
673673
lastUpdatedAt: snip.updatedAt,
674+
title: snip.title,
675+
description: snip.description,
674676
}))
675677
}
676678

0 commit comments

Comments
 (0)