updateAstronomicalStatus(params: IUpdateAstronomicalStatus)

Requires:
@ray-js/ray≥1.5.2

Description

Modify the enable state of the astronomical timer

Parameters

ParameterTypeRequiredDescription
YesRequest parameters

Return Value

Type: Promise<boolean>
Whether the status was updated successfully

Examples

Basic usage

import { updateAstronomicalStatus } from '@ray-js/ray';

updateAstronomicalStatus({
  id: '8642566',
  status: 0,
}).then((response) => {
  console.log('Update status result:', response);
}).catch((err) => {
  console.error(err);
});