Skip to content

Use user primary key in pizza API

Ghost User requested to merge fix/member-pk-pizzas-api into master

Previous behaviour

Steps to reproduce:

  1. Create multiple users and make sure the member pk is not equal to the user model pk.
  2. Create a pizza event and place an order.
  3. Notice that the value of 'member' is not equal to the user model pk.

New behaviour

Steps to validate that it works:

  1. Create multiple users and make sure the member pk is not equal to the user model pk.
  2. Create a pizza event and place an order.
  3. Notice that the value of 'member' is equal to the user model pk.

Merge request reports

Loading