change users table
This commit is contained in:
@@ -174,7 +174,9 @@ func (r *repository) GetByID(ctx context.Context, id int64) (loanorders.LoanOrde
|
||||
const nextUniqueIDSQL = `(SELECT LPAD((COALESCE(MAX(unique_id::bigint), 0) + 1)::text, 4, '0') FROM loan_orders)`
|
||||
|
||||
func (r *repository) Create(ctx context.Context, dto loanorders.CreateLoanOrderDTO) (loanorders.LoanOrderDTO, error) {
|
||||
args := createArgs(dto)
|
||||
// unique_id is supplied positionally via nextUniqueIDSQL below, so drop it
|
||||
// from the bound args to avoid double-supplying the first column.
|
||||
args := createArgs(dto)[1:]
|
||||
|
||||
placeholders := make([]string, len(args))
|
||||
for i := range args {
|
||||
|
||||
Reference in New Issue
Block a user