This commit is contained in:
parent
34daae0d9e
commit
f7fe30f387
|
@ -90,6 +90,12 @@ WHERE "channel_id" = $1
|
||||||
args = append(args, b)
|
args = append(args, b)
|
||||||
qb.WriteString(` AND "published_at" < $2`)
|
qb.WriteString(` AND "published_at" < $2`)
|
||||||
}
|
}
|
||||||
|
} else if after != "" {
|
||||||
|
b, err := time.Parse(time.RFC3339, after)
|
||||||
|
if err == nil {
|
||||||
|
args = append(args, b)
|
||||||
|
qb.WriteString(` AND "published_at" > $2`)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
qb.WriteString(` ORDER BY "published_at"`)
|
qb.WriteString(` ORDER BY "published_at"`)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user