|
Lines 8-14
describe("opac-readingrecord", () => {
Link Here
|
| 8 |
cy.task("insertSampleCheckout", { |
8 |
cy.task("insertSampleCheckout", { |
| 9 |
patron: patron, |
9 |
patron: patron, |
| 10 |
}).then(objects_checkout => { |
10 |
}).then(objects_checkout => { |
| 11 |
objects_to_cleanup.push(objects_checkout); |
|
|
| 12 |
cy.task("query", { |
11 |
cy.task("query", { |
| 13 |
sql: "INSERT INTO old_issues SELECT * FROM issues WHERE issue_id=?", |
12 |
sql: "INSERT INTO old_issues SELECT * FROM issues WHERE issue_id=?", |
| 14 |
values: [objects_checkout.checkout.checkout_id], |
13 |
values: [objects_checkout.checkout.checkout_id], |
|
Lines 17-22
describe("opac-readingrecord", () => {
Link Here
|
| 17 |
sql: "DELETE FROM issues WHERE issue_id=?", |
16 |
sql: "DELETE FROM issues WHERE issue_id=?", |
| 18 |
values: [objects_checkout.checkout.checkout_id], |
17 |
values: [objects_checkout.checkout.checkout_id], |
| 19 |
}); |
18 |
}); |
|
|
19 |
objects_checkout.old_checkout = objects_checkout.checkout; |
| 20 |
delete objects_checkout.checkout; |
| 21 |
objects_to_cleanup.push(objects_checkout); |
| 20 |
}); |
22 |
}); |
| 21 |
}); |
23 |
}); |
| 22 |
|
24 |
|