mirror of
https://github.com/aykhans/slash-e.git
synced 2025-07-03 20:21:40 +00:00
chore: update find activities
This commit is contained in:
@ -46,6 +46,9 @@ func (d *DB) ListActivities(ctx context.Context, find *store.FindActivity) ([]*s
|
||||
if find.PayloadShortcutID != nil {
|
||||
where, args = append(where, fmt.Sprintf("CAST(payload::JSON->>'shortcutId' AS INTEGER) = %s", placeholder(len(args)+1))), append(args, *find.PayloadShortcutID)
|
||||
}
|
||||
if find.CreatedTsAfter != nil {
|
||||
where, args = append(where, "created_ts > "+placeholder(len(args)+1)), append(args, *find.CreatedTsAfter)
|
||||
}
|
||||
|
||||
query := `
|
||||
SELECT
|
||||
|
Reference in New Issue
Block a user