WIP trust
This commit is contained in:
parent
5d2bd7f62a
commit
7903dbdaf3
|
@ -0,0 +1,2 @@
|
||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE "users" ADD COLUMN "trust" DOUBLE PRECISION NOT NULL DEFAULT 0;
|
|
@ -35,6 +35,7 @@ model User {
|
||||||
checkedNotesAt DateTime?
|
checkedNotesAt DateTime?
|
||||||
tipDefault Int @default(1)
|
tipDefault Int @default(1)
|
||||||
pubkey String? @unique
|
pubkey String? @unique
|
||||||
|
trust Float @default(0)
|
||||||
|
|
||||||
upvotePopover Boolean @default(false)
|
upvotePopover Boolean @default(false)
|
||||||
tipPopover Boolean @default(false)
|
tipPopover Boolean @default(false)
|
||||||
|
|
|
@ -22,9 +22,14 @@ async function work () {
|
||||||
await boss.work('checkInvoice', checkInvoice)
|
await boss.work('checkInvoice', checkInvoice)
|
||||||
await boss.work('checkWithdrawal', checkWithdrawal)
|
await boss.work('checkWithdrawal', checkWithdrawal)
|
||||||
await boss.work('repin-*', repin)
|
await boss.work('repin-*', repin)
|
||||||
|
await boss.work('trust', trust)
|
||||||
console.log('working jobs')
|
console.log('working jobs')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async function trust () {
|
||||||
|
return null
|
||||||
|
}
|
||||||
|
|
||||||
async function repin ({ name }) {
|
async function repin ({ name }) {
|
||||||
console.log(name)
|
console.log(name)
|
||||||
// get the id
|
// get the id
|
||||||
|
|
Loading…
Reference in New Issue