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

Commit

Permalink
Merge pull request #29 from walnuts1018/addemoji
Browse files Browse the repository at this point in the history
db名を修正
  • Loading branch information
wolfmagnate authored Nov 5, 2023
2 parents 6fab93f + 90fa3df commit 64d620a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions back/domain/moneyprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

func (d *dbImpl) NewMoneyProvider(moneyProvider MoneyProvider) (MoneyProvider, error) {
// クエリ文字列で位置パラメータを使用します。
query := `INSERT INTO money_providers (name, creator_id, balance)
query := `INSERT INTO money_provider (name, creator_id, balance)
VALUES ($1, $2, $3)
RETURNING id`
// QueryRowを使用してSQLクエリを実行し、戻り値のIDを取得します。
Expand Down Expand Up @@ -41,7 +41,7 @@ func (d *dbImpl) UpdateMoneyProvider(moneyProvider MoneyProvider) error {
}

func (d *dbImpl) DeleteMoneyProvider(id string) error {
query := `DELETE FROM money_providers WHERE id = $1`
query := `DELETE FROM money_provider WHERE id = $1`
result, err := d.db.Exec(query, id)
if err != nil {
return fmt.Errorf("could not delete money provider: %v", err)
Expand Down

0 comments on commit 64d620a

Please sign in to comment.