Closed liamwhite closed 4 years ago
This probably wasn't intended to happen in the old rails code either, but it can, because the presence of a base price is not validated https://github.com/derpibooru/philomena/blob/9241a08bce6ccb038e350af5525f68fe26d2ece4/lib/philomena/commissions/item.ex#L20-L30 and the database column is nullable. https://github.com/derpibooru/philomena/blob/9241a08bce6ccb038e350af5525f68fe26d2ece4/priv/repo/structure.sql#L263-L273
This probably wasn't intended to happen in the old rails code either, but it can, because the presence of a base price is not validated https://github.com/derpibooru/philomena/blob/9241a08bce6ccb038e350af5525f68fe26d2ece4/lib/philomena/commissions/item.ex#L20-L30 and the database column is nullable. https://github.com/derpibooru/philomena/blob/9241a08bce6ccb038e350af5525f68fe26d2ece4/priv/repo/structure.sql#L263-L273