Skip to content

Commit

Permalink
Merge pull request #9 from usepriceflow/list-orgs-two
Browse files Browse the repository at this point in the history
More organization changes
  • Loading branch information
markholmes authored Jun 6, 2024
2 parents bc7ec81 + c03677f commit f3ff0f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/services/organization_services.gleam
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import app/decoders/organization_decoders as decoders
import app/contexts/organization_contexts as contexts
import app/contexts/web_contexts.{type Context}
import app/queries/organization_queries as queries
import app/types/web_types.{type Context}
import gleam/json
import gleam/result.{try}
import wisp.{type Request, type Response}
Expand All @@ -10,7 +10,7 @@ pub fn create_organization(req: Request, ctx: Context) -> Response {

let result = {
// Decode the JSON into a NewOrganization record.
use new_organization <- try(decoders.new_organization_decoder(json))
use new_organization <- try(contexts.new_organization_decoder(json))

// Save the organization to the database.
use organization <- try(queries.create_organization(
Expand Down

0 comments on commit f3ff0f8

Please sign in to comment.