Skip to content

Commit bf0a16b

Browse files
authored
Update core.rs
1 parent e193b6f commit bf0a16b

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/rpc/core.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -294,18 +294,6 @@ impl RPCMethod {
294294
.into());
295295
}
296296

297-
// Also ensure that onboarding has happened
298-
if sqlx::query!(
299-
"SELECT COUNT(*) FROM staff_onboardings WHERE user_id = $1 AND void = false AND state = 'completed' AND NOW() - created_at < INTERVAL '1 month'",
300-
&state.user_id,
301-
)
302-
.fetch_one(&state.pool)
303-
.await?
304-
.count
305-
.unwrap_or(0) == 0 {
306-
return Err("You need to have completed onboarding in order to use RPC!".into());
307-
}
308-
309297
// Insert into rpc_logs
310298
let id = sqlx::query!(
311299
"INSERT INTO rpc_logs (method, user_id, data) VALUES ($1, $2, $3) RETURNING id",

0 commit comments

Comments
 (0)