mirror of https://github.com/usememos/memos.git
fix test
This commit is contained in:
parent
7a8aa23910
commit
4dc87989fc
|
|
@ -92,7 +92,7 @@ func TestConvertExprToSQL(t *testing.T) {
|
|||
},
|
||||
{
|
||||
filter: `created_ts > now() - 60 * 60 * 24`,
|
||||
want: "EXTRACT(EPOCH FROM memo.created_ts) > $1",
|
||||
want: "EXTRACT(EPOCH FROM TO_TIMESTAMP(memo.created_ts)) > $1",
|
||||
args: []any{time.Now().Unix() - 60*60*24},
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue