Skip to content

Commit

Permalink
Adjust database to simplify notes
Browse files Browse the repository at this point in the history
  • Loading branch information
af-afk committed Aug 27, 2024
1 parent 5f158c2 commit cc74c1f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/graphql.ethereum/schema.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ type Query {
"""
Get either global or user-specific presentation issue in anything SPN.
"""
notes(wallet: String): [Note!]!
getNotes(wallet: String!): [Note!]!

"""
Get a pool using the address of token1 that's in the pool.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ FROM (
transaction_hash
FROM
events_seawater_swap2
WHERE created_by > after AND user_ = owner AND (to_ = fusdcAddress OR from_ = fusdcAddress)
WHERE created_by > after AND user_ = owner
ORDER BY created_by DESC
LIMIT limit_
)
Expand Down
4 changes: 2 additions & 2 deletions db/migrations/1724739049-init_notes.sql
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ CREATE TABLE notes_1 (

CREATE VIEW notes_current_1 AS
SELECT * from notes_1 WHERE
from_ > CURRENT_TIMESTAMP AND
to_ < CURRENT_TIMESTAMP;
from_ < CURRENT_TIMESTAMP AND
to_ > CURRENT_TIMESTAMP;

-- migrate:down

0 comments on commit cc74c1f

Please sign in to comment.