MCPcopy Create free account
hub / github.com/PIKACHUIM/CFWorkerACME / delUsers

Function delUsers

src/users.ts:166–171  ·  view source on GitHub ↗
(c: Context, email: string)

Source from the content-addressed store, hash-verified

164
165// 删除用户 ###############################################################################
166export async function delUsers(c: Context, email: string) {
167 // saves.deleteDB 的 where 参数约定为普通 kv 对象({col: value}),
168 // 不是旧的 SelectWhere 形式({col: {value, op}});传后者会导致
169 // D1 bind 收到 object 抛出 D1_TYPE_ERROR。
170 return await saves.deleteDB(c.env.DB_CF, "Users", {mail: email});
171}
172
173// 新增用户 ###############################################################################
174export async function addUsers(c: Context, email: string, reset: boolean = false) {

Callers 1

getNonceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected