Skip to content

Commit 173fe62

Browse files
glassbead0vnugent
authored andcommitted
fix: allow water ice grades
1 parent 86b9a77 commit 173fe62

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

src/db/ClimbSchema.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ const GradeTypeSchema = new Schema<GradeScalesTypes>({
6666
brazilian_crux: { type: Schema.Types.String, required: false },
6767
french: { type: Schema.Types.String, required: false },
6868
font: { type: Schema.Types.String, required: false },
69-
UIAA: { type: Schema.Types.String, required: false }
69+
UIAA: { type: Schema.Types.String, required: false },
70+
wi: { type: Schema.Types.String, required: false }
7071
}, { _id: false })
7172

7273
const PitchSchema = new mongoose.Schema({

src/db/ClimbTypes.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -100,15 +100,6 @@ export enum SafetyType {
100100
X = 'X',
101101
}
102102

103-
export interface IGradeType {
104-
yds?: string
105-
ewbank?: string
106-
brazilianCrux?: string
107-
french?: string
108-
font?: string
109-
uiaa?: string
110-
}
111-
112103
/**
113104
* What sort of climb is this? Routes can combine these fields, which is why
114105
* this is not an enumeration.

src/graphql/schema/Climb.gql

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,11 @@ type GradeType {
187187
https://en.wikipedia.org/wiki/Grade_(climbing)#UIAA
188188
"""
189189
uiaa: String
190+
"""
191+
Water Ice Grading System
192+
https://en.wikipedia.org/wiki/Ice_climbing#WI-grades
193+
"""
194+
wi: String
190195
}
191196

192197
"""

0 commit comments

Comments
 (0)