Add update shop & owner endpoints

This commit is contained in:
2020-10-18 02:31:17 -04:00
parent 441bc979f2
commit 97a2ac52dc
8 changed files with 169 additions and 13 deletions

View File

@@ -55,7 +55,7 @@ impl Model for MerchandiseList {
}
#[instrument(level = "debug", skip(self, db))]
async fn save(self, db: &PgPool) -> Result<Self> {
async fn create(self, db: &PgPool) -> Result<Self> {
Ok(sqlx::query_as_unchecked!(
Self,
"INSERT INTO merchandise_lists