appwrite-utils-cli 1.2.15 → 1.2.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/collections/indexes.js +6 -7
- package/dist/migrations/comprehensiveTransfer.js +196 -101
- package/dist/migrations/transfer.js +6 -0
- package/package.json +1 -1
- package/src/collections/indexes.ts +6 -7
- package/src/migrations/comprehensiveTransfer.ts +891 -364
- package/src/migrations/transfer.ts +12 -0
@@ -769,6 +769,18 @@ export const transferUsersLocalToRemote = async (
|
|
769
769
|
);
|
770
770
|
}
|
771
771
|
|
772
|
+
if (user.emailVerification) {
|
773
|
+
await tryAwaitWithRetry(async () =>
|
774
|
+
remoteUsers.updateEmailVerification(user.$id, true)
|
775
|
+
);
|
776
|
+
}
|
777
|
+
|
778
|
+
if (user.phoneVerification) {
|
779
|
+
await tryAwaitWithRetry(async () =>
|
780
|
+
remoteUsers.updatePhoneVerification(user.$id, true)
|
781
|
+
);
|
782
|
+
}
|
783
|
+
|
772
784
|
totalTransferred++;
|
773
785
|
console.log(chalk.green(`Transferred user ${user.$id}`));
|
774
786
|
} catch (error) {
|