WIP trust

This commit is contained in:
keyan 2022-01-14 11:28:05 -06:00
parent 5d2bd7f62a
commit 7903dbdaf3
3 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "users" ADD COLUMN "trust" DOUBLE PRECISION NOT NULL DEFAULT 0;

View File

@ -35,6 +35,7 @@ model User {
checkedNotesAt DateTime?
tipDefault Int @default(1)
pubkey String? @unique
trust Float @default(0)
upvotePopover Boolean @default(false)
tipPopover Boolean @default(false)

View File

@ -22,9 +22,14 @@ async function work () {
await boss.work('checkInvoice', checkInvoice)
await boss.work('checkWithdrawal', checkWithdrawal)
await boss.work('repin-*', repin)
await boss.work('trust', trust)
console.log('working jobs')
}
async function trust () {
return null
}
async function repin ({ name }) {
console.log(name)
// get the id