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

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
walnuts1018 committed Nov 1, 2023
1 parent 368434f commit c39a3ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion back/usecase/usecase.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func (u Usecase) GetUser(userID string) (domain.User, error) {

func (u Usecase) NewMoneyPool(moneyPoolName, moneyPoolColor, userID string, isWorldPublic bool) (domain.MoneyPool, error) {
r := rand.New(rand.NewSource(time.Now().UnixNano()))
moneyPoolID := base64.StdEncoding.EncodeToString([]byte(fmt.Sprintf("%d%d%d", moneyPoolName, userID, r.Int63())))
moneyPoolID := base64.StdEncoding.EncodeToString([]byte(fmt.Sprintf("%v%v%v", moneyPoolName, userID, r.Int63())))
moneyPool := domain.MoneyPool{
ID: moneyPoolID,
Name: moneyPoolName,
Expand Down

0 comments on commit c39a3ea

Please sign in to comment.