Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
squadgazzz committed Nov 27, 2023
1 parent 9c3aa44 commit c5a170c
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions crates/database/src/order_events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ pub async fn insert_order_event(
event: &OrderEvent,
) -> Result<(), sqlx::Error> {
const QUERY: &str = r#"
INSERT INTO order_events (
order_uid,
timestamp,
label
)
VALUES ($1, $2, $3)
"#;
INSERT INTO order_events (
order_uid,
timestamp,
label
)
VALUES ($1, $2, $3)
"#;
sqlx::query(QUERY)
.bind(event.order_uid)
.bind(event.timestamp)
Expand All @@ -73,9 +73,9 @@ pub async fn delete_order_events_before(
timestamp: DateTime<Utc>,
) -> Result<u64, sqlx::Error> {
const QUERY: &str = r#"
DELETE FROM order_events
WHERE timestamp < $1
"#;
DELETE FROM order_events
WHERE timestamp < $1
"#;
sqlx::query(QUERY)
.bind(timestamp)
.execute(pool)
Expand Down

0 comments on commit c5a170c

Please sign in to comment.