Skip to content

Commit

Permalink
chore: review
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-jonas committed Dec 6, 2022
1 parent bb23997 commit e1ce94f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion courier/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func (h *Handler) listCourierMessages(w http.ResponseWriter, r *http.Request, _
}
}

w.Header().Set("x-total-count", fmt.Sprint(tc))
w.Header().Set("X-Total-Count", fmt.Sprint(tc))
keysetpagination.Header(w, r.URL, nextPage)
h.r.Writer().Write(w, r, l)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ CREATE TABLE courier_message_dispatches (
status VARCHAR(7) NOT NULL,
error JSON,
nid UUID NOT NULL,
created_at timestamp NOT NULL,
updated_at timestamp NOT NULL,
created_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
updated_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
CONSTRAINT courier_message_dispatches_message_id_fk FOREIGN KEY (message_id) REFERENCES courier_messages (id) ON DELETE cascade,
CONSTRAINT courier_message_dispatches_nid_fk FOREIGN KEY (nid) REFERENCES networks (id) ON DELETE cascade
);
Expand Down

0 comments on commit e1ce94f

Please sign in to comment.