Skip to content

Commit 2022d6f

Browse files
committed
Update schema.rs
1 parent fa595e8 commit 2022d6f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/basic/src/schema.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@
22
// For more information, visit https://github.com/ThatGuyJamal/convex-typegen
33

44
pub enum Users {
5-
Find,
65
Create,
6+
Find,
77
}
88

99
impl Users {
1010
pub fn to_string(&self) -> &'static str {
1111
match self {
12-
Users::Find => "users:find",
1312
Users::Create => "users:create",
13+
Users::Find => "users:find",
1414
}
1515
}
1616
pub fn from_string(s: &str) -> Option<Self> {
1717
match s {
18-
"users:find" => Some(Users::Find),
1918
"users:create" => Some(Users::Create),
19+
"users:find" => Some(Users::Find),
2020
_ => None,
2121
}
2222
}

0 commit comments

Comments
 (0)