// runSpringSync_Manual.js
import axios from 'axios';

async function triggerSpringSync() {
  try {
    const res = await axios.post('https://sys.psg.net.au:8443/api/admin/scripts/run-scheduled-sync');
    console.log(res.data);
  } catch (err) {
    console.error("❌ Failed to trigger:", err.response?.data || err.message);
  }
}

triggerSpringSync();
