|
|
@@ -94,7 +94,7 @@ export default function AdminModerationPage() {
|
|
|
|
|
|
const restore = async (id: string) => {
|
|
|
try {
|
|
|
- await api.post(`/places/${id}/restore`)
|
|
|
+ await api.post(`/places/${id}/restore`, {})
|
|
|
setPlaces((prev) => prev.filter((p) => p.id !== id))
|
|
|
setActionMsg('Место восстановлено')
|
|
|
} catch (err: any) {
|