forked from jriou/coller
fix: convert id to int64
Snowflake identifiers are integers, not strings. BREAKING CHANGE: notes that are not using snowflake identifiers will not be compatible anymore. Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
parent
b5701b5a4d
commit
1fcde736a8
6 changed files with 9 additions and 9 deletions
|
@ -35,7 +35,7 @@ type CreateNotePayload struct {
|
|||
}
|
||||
|
||||
type CreateNoteResponse struct {
|
||||
ID string `json:"id"`
|
||||
ID int64 `json:"id"`
|
||||
}
|
||||
|
||||
func (h *CreateNoteHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue