minor changes

This commit is contained in:
sanjayk03-dev
2024-08-27 22:13:41 +05:30
parent 7556234188
commit 4624e5cafd
2 changed files with 2 additions and 5 deletions

View File

@@ -152,7 +152,6 @@ module.exports = {
if (!this.selected_date || !this.selected_hours || !this.selected_minutes) {
return;
}
try {
const datetime = `${this.selected_date} ${this.selected_hours}:${this.selected_minutes}:00`;
const response = await api.put("time", { datetime });
@@ -162,8 +161,6 @@ module.exports = {
} else {
throw response;
}
console.log("Time update successful: ", response);
} catch (error) {
alert("Error updating time: ", error);
}