Age | Commit message (Collapse) | Author |
|
of these components for html, css, ts, and spec.ts. HTML and CSS files
were updated with code from stackblitz. Apparently this thing also
thinks I changed the app.module.ts file, but I do not think I did.
|
|
Also adds error for POST to individual resource
|
|
|
|
Transactions allow us to rollback inserts ensuring that the database is
in sync with our application.
|
|
When updating ingredients if some # are remove we need to remove the
same number from the database and update the rest, without an id column
we don't know which ones to delete.
|
|
Changed database schema so ingredients & steps does not have an id, and
therefore can't return it so instead we just exec the insert statement
without returning anything.
We do have to check that there were affected rows in order to accurately
update the recipe object.
|
|
|
|
|
|
|
|
Now uses sql.QueryRow rather than sql.Query so it doesnt have to check
row.Next(), just have to check that row was returned (on scan call)
|
|
|
|
MakeRecipeFromId was creating a empty recipe because rows.Next() was not
being checked.
|
|
JSON is no longer output to stdout and actually sent to client
|
|
JSON responses contains a status(error) section and a data section
Note: JSON is still not sent to client
|
|
Note: Still only prints to stdout, does not respond to client
|
|
Note: Only prints recipe to server stdout does not return to client
|
|
|
|
|
|
|
|
|
|
|
|
|