finalized application acceptance system and started making types shared across front and backend
This commit is contained in:
6
api/src/services/statusService.ts
Normal file
6
api/src/services/statusService.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import pool from "../db"
|
||||
|
||||
export async function assignUserToStatus(userID: number, statusID: number) {
|
||||
const sql = `INSERT INTO members_statuses (member_id, status_id, event_date) VALUES (?, ?, NOW())`
|
||||
await pool.execute(sql, [userID, statusID]);
|
||||
}
|
||||
Reference in New Issue
Block a user