select `revisions`.`id` as `id`, `revisionable_id`, `user_id`, `old_value`, `new_value`, `revision_keys`.`name` as `field_name`, `revision_types`.`name` as `model_name`, `created_at` from `revisions` inner join `revision_keys` on `revisions`.`revision_key_id` = `revision_keys`.`id` inner join `revision_types` on `revisions`.`revision_type_id` = `revision_types`.`id` where `revisionable_id` in (?) and `revision_types`.`name` = ? order by `revisions`.`id` desc
document.getElementById('btnTest').addEventListener('click',(e)=>{
e.preventDefault();
if (this.classList.contains("active")) {
this.classList.remove("active");
document.getElementById('btnTest2').submit();
} else return false;
});
Бэк находится на localhost:3000.