add simple line break

This commit is contained in:
polv committed 2020-12-16 12:35:54 +07:00
1 parent 4fb41de0f1
commit e4e364ae2a
8 files changed
+123 -73

No files matched your search

+4 -2
View File
@@ -42,18 +42,20 @@ app.get('/q', (req, res) => {
if (q) {
res.json(
db.q(`${q} ${tag ? `tag:${tag}` : ''}`, {
db.q(q, {
offset,
limit: perPage,
tag,
})
)
return
}
res.json(
db.by(tag ? `tag:${tag}` : '', {
db.by({
offset,
limit: perPage,
tag,
})
)
})