Renamed player columns to be consistent snake_case (#262)

This commit is contained in:
Alec LaLonde
2021-01-06 22:08:58 -07:00
committed by GitHub
parent 1027f019e5
commit 5534ff1a45
17 changed files with 119 additions and 134 deletions

View File

@@ -54,13 +54,13 @@ export const UpdatePlayer = gql`
_or: [
{
ethereum_address: { _eq: $ethAddress }
scIdentityId: { _eq: $identityId }
sc_identity_id: { _eq: $identityId }
}
{
ethereum_address: { _eq: $ethAddress }
username: { _eq: $username }
}
{ scIdentityId: { _eq: $identityId } }
{ sc_identity_id: { _eq: $identityId } }
{
Accounts: {
_and: { type: { _eq: DISCORD }, identifier: { _eq: $discordId } }
@@ -70,17 +70,17 @@ export const UpdatePlayer = gql`
}
_set: {
ethereum_address: $ethAddress
scIdentityId: $identityId
sc_identity_id: $identityId
username: $username
rank: $rank
totalXp: $totalXp
total_xp: $totalXp
}
) {
affected_rows
returning {
id
ethereum_address
scIdentityId
sc_identity_id
username
}
}