Skip to content

Commit

Permalink
fix: query search
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanglun committed Dec 24, 2023
1 parent 5c18440 commit 77c4f40
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions src-tauri/src/core/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,11 @@ impl Common {
articles AS A
LEFT JOIN feeds as F
WHERE
A.title LIKE ?
AND
A.content LIKE ?
(
A.title LIKE ?
OR
A.content LIKE ?
)
AND A.feed_uuid = F.uuid
LIMIT ? OFFSET ?
;"
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/src/server/handlers/article.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use actix_web::{get, post, web, App, HttpRequest, HttpResponse, HttpServer, Responder, Result};
use actix_web::{get, post, web, Responder, Result};
use serde::{Deserialize, Serialize};

use crate::core;
Expand Down

0 comments on commit 77c4f40

Please sign in to comment.