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

@@ -3,4 +3,9 @@
schedule: 0 1 * * *
include_in_metadata: true
payload: {}
retry_conf:
num_retries: 0
timeout_seconds: 600
tolerance_seconds: 21600
retry_interval_seconds: 10
comment: Reads account data from XP Github and upserts users into the Database

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,
};
};