mirror of
https://github.com/System-End/scraps.git
synced 2026-04-19 16:28:20 +00:00
nathan i will hurt you if this was you
This commit is contained in:
parent
b3cdfd7ade
commit
b42a009a9f
1 changed files with 1 additions and 1 deletions
|
|
@ -163,7 +163,7 @@ export async function getUserScrapsBalance(
|
|||
})
|
||||
.from(projectsTable)
|
||||
.where(
|
||||
sql`${projectsTable.userId} = ${userId} AND ${projectsTable.scrapsPaidAt} IS NOT NULL AND ${projectsTable.scrapsAwarded} > 0`,
|
||||
sql`${projectsTable.userId} = ${userId} AND (${projectsTable.scrapsPaidAt} IS NOT NULL OR ${projectsTable.scrapsPaidAmount} > 0) AND ${projectsTable.scrapsAwarded} > 0`,
|
||||
);
|
||||
|
||||
// Pending scraps: scrapsAwarded for shipped unpaid projects
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue