Skip to content

Commit

Permalink
fix: seed
Browse files Browse the repository at this point in the history
  • Loading branch information
dadiorchen committed Mar 12, 2022
1 parent f3d427c commit 198fea3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions database/seed/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,16 @@ exports.seed = async (
multiplier = 1
}
console.warn("multiplier ", multiplier)

const maxPayout = 1200000
const amount = multiplier * maxPayout
await knex("earnings").insert({
worker_id,
amount,
payment_confirmation_id: uuid(),
payment_method: 'cash',
payment_method: null,
currency: 'USD',
status: 'calculated',
paid_at: new Date().toISOString(),
paid_at: null,
contract_id: '483a1f4e-0c52-4b53-b917-5ff4311ded26',
funder_id,
calculated_at: new Date().toISOString(),
Expand Down

0 comments on commit 198fea3

Please sign in to comment.