Skip to content
This repository has been archived by the owner on Dec 16, 2023. It is now read-only.

Commit

Permalink
fix: conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
GalvinGao committed Feb 8, 2023
1 parent fed5509 commit 8dd2945
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/app/service/bonjour.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ func (s *Bonjour) RecordEventSearchResultEntered(b *model.EventSearchResultEnter
}

// Count counts current bonjour requests from db
func (s *Bonjour) Count() (int64, error) {
var count int64
func (s *Bonjour) Count() (uint64, error) {
var count uint64
if err := s.repo.DB.QueryRow(context.Background(), "select count(*) from bonjours").Scan(&count); err != nil {
return -1, err
return 0, err
}
return count, nil
}

0 comments on commit 8dd2945

Please sign in to comment.