mirror of
https://github.com/Discreetly/server.git
synced 2026-04-17 03:00:55 -04:00
chore(gateways): discordId and steamId64 both optional in schema now
This commit is contained in:
@@ -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])
|
||||
|
||||
@@ -68,8 +68,6 @@ export async function createRoom(
|
||||
gateways: {
|
||||
create: mockUsers.map((user) => ({
|
||||
semaphoreIdentity: user,
|
||||
discordId: '',
|
||||
steamId64: ''
|
||||
}))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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: '',
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,8 +21,6 @@ export interface ClaimCodeI {
|
||||
|
||||
export interface GateWayIdentityI {
|
||||
semaphoreIdentity: string;
|
||||
discordId: string;
|
||||
steamId64: string;
|
||||
roomIds: string[];
|
||||
usedClaimCodes: string[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user