chore: update find activities

This commit is contained in:
Steven committed 2024-08-13 23:04:13 +08:00
1 parent 9876fb27a4
commit f057cd0078
4 files changed
+15 -2

No files matched your search

+3
View File
@@ -45,6 +45,9 @@ func (d *DB) ListActivities(ctx context.Context, find *store.FindActivity) ([]*s
if find.PayloadShortcutID != nil {
where, args = append(where, "json_extract(payload, '$.shortcutId') = ?"), append(args, *find.PayloadShortcutID)
}
if find.CreatedTsAfter != nil {
where, args = append(where, "created_ts > ?"), append(args, *find.CreatedTsAfter)
}
query := `
SELECT