mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-02-08 21:15:05 -05:00
Add case in SC migration script where user doesnt already have a SC identityID (#296)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 }
|
||||
|
||||
@@ -12,7 +12,7 @@ export const getStaticProps = async () => {
|
||||
props: {
|
||||
players,
|
||||
},
|
||||
revalidate: 10,
|
||||
revalidate: 1,
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user