Add case in SC migration script where user doesnt already have a SC identityID (#296)

This commit is contained in:
Hammad Jutt
2021-01-21 20:05:49 -07:00
committed by GitHub
parent 7492ae5bd6
commit 0dabebbe04
3 changed files with 10 additions and 1 deletions

View File

@@ -68,6 +68,10 @@ export const UpdatePlayer = gql`
ethereum_address: { _eq: $ethAddress }
sc_identity_id: { _eq: $identityId }
}
{
ethereum_address: { _eq: $ethAddress }
sc_identity_id: { _is_null: true }
}
{
ethereum_address: { _eq: $ethAddress }
username: { _eq: $username }

View File

@@ -12,7 +12,7 @@ export const getStaticProps = async () => {
props: {
players,
},
revalidate: 10,
revalidate: 1,
};
};