Skip to content

Commit b1495ef

Browse files
committed
actually set users JMC in db
1 parent 9434353 commit b1495ef

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

hono/family/family.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export const family = factory
5454
);
5555
}
5656

57-
const { name, interests, aboutMe, socials, gender } =
57+
const { name, interests, aboutMe, socials, gender, jmc } =
5858
ctx.req.valid('json');
5959

6060
await db
@@ -65,7 +65,8 @@ export const family = factory
6565
interests: interests as Interests,
6666
aboutMe: aboutMe,
6767
socials: socials,
68-
gender: gender
68+
gender: gender,
69+
jmc: jmc
6970
})
7071
.where(eq(students.shortcode, shortcode));
7172

0 commit comments

Comments
 (0)