api: use commentoExportV1 struct

This commit is contained in:
Adhityaa Chandrasekar
2020-03-31 06:03:26 -04:00
parent 0d929595cc
commit 885b4c6689
3 changed files with 4 additions and 10 deletions

View File

@@ -15,13 +15,7 @@ func domainExportBeginError(email string, toName string, domain string, err erro
}
func domainExportBegin(email string, toName string, domain string) {
type dataExport struct {
Version int `json:"version"`
Comments []comment `json:"comments"`
Commenters []commenter `json:"commenters"`
}
e := dataExport{Version: 1, Comments: []comment{}, Commenters: []commenter{}}
e := commentoExportV1{Version: 1, Comments: []comment{}, Commenters: []commenter{}}
statement := `
SELECT commentHex, domain, path, commenterHex, markdown, parentHex, score, state, creationDate