feat: add HasIncompleteTasks to memo property

This commit is contained in:
Steven
2024-06-05 08:39:56 +08:00
parent f0817f2762
commit 797f5a123c
22 changed files with 634 additions and 521 deletions

View File

@@ -102,6 +102,9 @@ func (d *DB) ListMemos(ctx context.Context, find *store.FindMemo) ([]*store.Memo
if v.HasCode {
where = append(where, "JSON_EXTRACT(`memo`.`payload`, '$.property.hasCode') IS TRUE")
}
if v.HasIncompleteTasks {
where = append(where, "JSON_EXTRACT(`memo`.`payload`, '$.property.hasIncompleteTasks') IS TRUE")
}
}
if find.ExcludeComments {
having = append(having, "`parent_id` IS NULL")