Skip to content

Commit 3f7c4c2

Browse files
authored
Merge pull request #22 from he1senbrg/hotfix
Fix: make discord_id optional in Member struct
2 parents 21b0d15 + 0ba95b7 commit 3f7c4c2

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

docs/mutations.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ email: String!
3030
sex: String!
3131
year: Int!
3232
macaddress: String!
33+
discordId: String
3334
```
3435

3536
**Note:** The `year` field represents the members's current college year

docs/queries.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ email: String!
3030
sex: String!
3131
year: Int!
3232
macaddress: String!
33+
discordId: String!
3334
```
3435

3536
---

src/db/member.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ pub struct Member {
1414
pub sex: String,
1515
pub year: i32,
1616
pub macaddress: String,
17-
pub discord_id: String,
17+
pub discord_id: Option<String>,
1818
}

0 commit comments

Comments
 (0)