Skip to content

Commit b74c7e9

Browse files
authored
Merge pull request #65 from GeneralMagicio/rf6-staging
Rf6 staging
2 parents 6ccb44d + 849704c commit b74c7e9

File tree

3 files changed

+27
-1
lines changed

3 files changed

+27
-1
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-- AlterTable
2+
ALTER TABLE "User" ALTER COLUMN "budget" SET DEFAULT 1100000;

prisma/schema.prisma

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ generator client {
1010

1111
model User {
1212
id Int @id @default(autoincrement())
13-
budget Int @default(2000000) // 2M In OP
13+
budget Int @default(1100000) // 1.1M In OP
1414
address String @unique()
1515
smartaddress String? @unique()
1616
ballotSuccess Int? @map("ballot_success")

src/flow/flow.controller.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1277,5 +1277,29 @@ export class FlowController {
12771277
await this.prismaService.projectCoI.deleteMany({
12781278
where: { userId: userId },
12791279
});
1280+
await this.prismaService.budgetDelegation.findUnique({
1281+
where: { userId: userId },
1282+
});
1283+
await this.prismaService.collectionDelegation.deleteMany({
1284+
where: { userId: userId },
1285+
});
1286+
await this.prismaService.farcasterConnection.deleteMany({
1287+
where: { userId: userId },
1288+
});
1289+
await this.prismaService.share.deleteMany({
1290+
where: { userId: userId },
1291+
});
1292+
await this.prismaService.userAttestation.deleteMany({
1293+
where: { userId: userId },
1294+
});
1295+
await this.prismaService.userBudgetAttestation.deleteMany({
1296+
where: { userId: userId },
1297+
});
1298+
await this.prismaService.userCollectionFinish.deleteMany({
1299+
where: { userId: userId },
1300+
});
1301+
await this.prismaService.user.deleteMany({
1302+
where: { id: userId },
1303+
});
12801304
}
12811305
}

0 commit comments

Comments
 (0)