mirror of
https://github.com/MAGICGrants/campaign-site.git
synced 2026-01-09 20:38:02 -05:00
Revert "Merge pull request #180 from MAGICGrants/funding-required-litecoin"
This reverts commit88ff09caa0, reversing changes made tof705639f4e.
This commit is contained in:
@@ -110,9 +110,9 @@ async function handle(
|
||||
|
||||
let responseBody: ResponseBody | ResponseBodySpecificAsset = await Promise.all(
|
||||
projects.map(async (project): Promise<ResponseBody[0]> => {
|
||||
let bitcoinAddress: string | null = null
|
||||
let moneroAddress: string | null = null
|
||||
let litecoinAddress: string | null = null
|
||||
let bitcoinAddress = ''
|
||||
let moneroAddress = ''
|
||||
let litecoinAddress = ''
|
||||
|
||||
if (!project.isFunded) {
|
||||
const existingAddresses = await prisma.projectAddresses.findUnique({
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Warnings:
|
||||
|
||||
- Added the required column `litecoinAddress` to the `ProjectAddresses` table without a default value. This is not possible if the table is not empty.
|
||||
|
||||
*/
|
||||
-- AlterTable
|
||||
ALTER TABLE "ProjectAddresses" ADD COLUMN "litecoinAddress" TEXT NOT NULL;
|
||||
@@ -1,4 +0,0 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE "ProjectAddresses" ADD COLUMN "litecoinAddress" TEXT,
|
||||
ALTER COLUMN "bitcoinAddress" DROP NOT NULL,
|
||||
ALTER COLUMN "moneroAddress" DROP NOT NULL;
|
||||
@@ -71,9 +71,9 @@ model ProjectAddresses {
|
||||
projectSlug String
|
||||
fundSlug FundSlug
|
||||
btcPayInvoiceId String
|
||||
bitcoinAddress String?
|
||||
moneroAddress String?
|
||||
litecoinAddress String?
|
||||
bitcoinAddress String
|
||||
moneroAddress String
|
||||
litecoinAddress String
|
||||
|
||||
@@unique([projectSlug, fundSlug])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user