fix show_archived

This commit is contained in:
Ruben Fiszel
2023-05-02 14:12:06 +02:00
parent e66b22d3b9
commit 547b3d3cd8
+1 -1
View File
@@ -155,7 +155,7 @@ async fn list_scripts(
if lq.show_archived.unwrap_or(false) {
sqlb.and_where_eq(
"created_at",
"o.created_at",
"(select max(created_at) from script where o.path = path
AND workspace_id = ?)"
.bind(&w_id),