You've already forked golang-saas-starter-kit
mirror of
https://github.com/raseels-repos/golang-saas-starter-kit.git
synced 2025-08-06 22:32:51 +02:00
Fix random errors from tests
This commit is contained in:
@ -73,7 +73,7 @@ func (h *Projects) Index(ctx context.Context, w http.ResponseWriter, r *http.Req
|
||||
var v datatable.ColumnValue
|
||||
switch col.Field {
|
||||
case "id":
|
||||
v.Value = fmt.Sprintf("%d", q.ID)
|
||||
v.Value = fmt.Sprintf("%s", q.ID)
|
||||
case "name":
|
||||
v.Value = q.Name
|
||||
v.Formatted = fmt.Sprintf("<a href='%s'>%s</a>", urlProjectsView(q.ID), v.Value)
|
||||
|
@ -100,7 +100,7 @@ func (h *Users) Index(ctx context.Context, w http.ResponseWriter, r *http.Reques
|
||||
var v datatable.ColumnValue
|
||||
switch col.Field {
|
||||
case "id":
|
||||
v.Value = fmt.Sprintf("%d", q.ID)
|
||||
v.Value = fmt.Sprintf("%s", q.ID)
|
||||
case "name":
|
||||
if strings.TrimSpace(q.Name) == "" {
|
||||
v.Value = q.Email
|
||||
|
Reference in New Issue
Block a user