Convert instance to use zod

This commit is contained in:
Alex Gleason
2023-09-23 20:41:24 -05:00
parent 970ad24de9
commit 3b630ed8fb
46 changed files with 326 additions and 195 deletions

View File

@@ -23,7 +23,7 @@ const Migration = () => {
const dispatch = useAppDispatch();
const instance = useInstance();
const cooldownPeriod = instance.pleroma.getIn(['metadata', 'migration_cooldown_period']) as number | undefined;
const cooldownPeriod = instance.pleroma.metadata.migration_cooldown_period;
const [targetAccount, setTargetAccount] = useState('');
const [password, setPassword] = useState('');