mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-02-08 13:05:15 -05:00
Add case in SC migration script where user doesnt already have a SC identityID (#296)
This commit is contained in:
@@ -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