Issue with delete and update

I’m using node.js

When I try to update or delete a task, instead of doing it it inserts another task.
this is what I have for them:

// update event
    async update(id, data) {
        await this._db.query(
            "UPDATE ?? SET `start_date` = ?, `end_date` = ?, `text` = ? WHERE id = ?",
            [this.table, data.start_date, data.end_date, data.text, id]);

    return {
        action: "updated"
    }
}

// delete event
async delete(id,data) {
    await this._db.query(
        "DELETE FROM ?? WHERE `id`=? ;",
        [this.table, data.start_date, data.end_date, data.text, id]);

    return {
        action: "deleted"
    }
}

Hello @Javiera_Meneses,

This issue could have occurred, if your request doesn’t contain the “actions” parameter: {"action":"deleted"}/{"action":"updated"}/{"action":"inserted"}

You can find the correct format of server requests by the following link:
https://docs.dhtmlx.com/scheduler/server_integration.html#technique

If there is still will be an issue, could you please show me, how your server request looks like follows:
delete:

add:

update: