admin: fix block period

This commit is contained in:
Pavel Mineev
2022-10-02 13:40:58 -05:00
committed by Umputun
parent 363e05d580
commit 53cc370727
+1 -1
View File
@@ -114,7 +114,7 @@ export const blockUser = (
block: boolean;
site_id: string;
user_id: string;
}> => adminFetcher.put(`/user/${id}`, { block: 1, ttl: ttl === 'permanently' ? ttl : undefined });
}> => adminFetcher.put(`/user/${id}`, { block: 1, ttl: ttl === 'permanently' ? undefined : ttl });
export const unblockUser = (
id: User['id']