chore(gateways): discordId and steamId64 both optional in schema now

This commit is contained in:
Tanner Shaw
2023-10-13 19:14:32 -05:00
parent d0b733694f
commit abdee0d522
4 changed files with 2 additions and 12 deletions

View File

@@ -38,9 +38,9 @@ model Rooms {
model GateWayIdentity {
id String @id @default(auto()) @map("_id") @db.ObjectId
semaphoreIdentity String @unique
discordId String
discordId String?
jubmojii String[]
steamId64 String
steamId64 String?
ethereumAddresses String[]
roomIds String[] @default([]) @db.ObjectId
rooms Rooms[] @relation(fields: [roomIds], references: [id])

View File

@@ -68,8 +68,6 @@ export async function createRoom(
gateways: {
create: mockUsers.map((user) => ({
semaphoreIdentity: user,
discordId: '',
steamId64: ''
}))
}
}

View File

@@ -86,8 +86,6 @@ export async function updateClaimCode(
gateways: {
create: {
semaphoreIdentity: idc,
discordId: '',
steamId64: ''
}
}
}
@@ -154,8 +152,6 @@ export async function addIdentityToIdentityListRooms(
gateways: {
create: {
semaphoreIdentity: identityCommitment,
discordId: '',
steamId64: ''
}
}
}
@@ -239,8 +235,6 @@ export async function addIdentityToBandadaRooms(
gateways: {
create: {
semaphoreIdentity: identityCommitment,
discordId: '',
steamId64: '',
}
}
}

View File

@@ -21,8 +21,6 @@ export interface ClaimCodeI {
export interface GateWayIdentityI {
semaphoreIdentity: string;
discordId: string;
steamId64: string;
roomIds: string[];
usedClaimCodes: string[];
}