Skip to content

Commit

Permalink
refactor: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Birkbjo committed Apr 21, 2020
1 parent 6838e21 commit c1dc193
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions server/src/models/v2/Organisation.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const definition = defaultDefinition
const dbDefinition = definition.tailor('db')

// internal -> external
const externalDefintion = definition.tailor('external')
const externalDefinition = definition.tailor('external')

// database -> internal
const parseDatabaseJson = createDefaultValidator(definition)
Expand All @@ -40,7 +40,7 @@ module.exports = {
def: definition,
definition,
dbDefinition,
externalDefintion,
externalDefinition,
parseDatabaseJson,
formatDatabaseJson,
}
4 changes: 2 additions & 2 deletions server/src/routes/v2/organisations.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module.exports = [
response: {
schema: Joi.array()
.items(
OrgModel.externalDefintion.fork('users', s =>
OrgModel.externalDefinition.fork('users', s =>
s.forbidden()
)
)
Expand Down Expand Up @@ -68,7 +68,7 @@ module.exports = [
},
tags: ['api', 'v2'],
response: {
schema: OrgModel.externalDefintion.label(
schema: OrgModel.externalDefinition.label(
'OrganisationWithUsers'
),
},
Expand Down

0 comments on commit c1dc193

Please sign in to comment.