initialize account
This commit is contained in:
@@ -1025,6 +1025,7 @@ long WrenchFamilyList(CVars in, CVars &out){
|
||||
return ret;
|
||||
}
|
||||
|
||||
long WrenchFamilyInitializeAccount(CVars in, CVars &out);
|
||||
long WrenchFamilyAdd(CVars in, CVars &out){
|
||||
logfmt(logINFO, "WrenchFamilyAdd()");
|
||||
long family_id = 0;
|
||||
@@ -1056,8 +1057,10 @@ long WrenchFamilyAdd(CVars in, CVars &out){
|
||||
|
||||
family_id = insert_db_record(DBS_VALID, "members_family", "members_family_id_seq", x);
|
||||
if (family_id > 0) {
|
||||
load_db_record(out, "SELECT * FROM members_family WHERE id =%lu",family_id);
|
||||
load_db_record(out, "SELECT id AS family_id, * FROM members_family WHERE id =%lu",family_id);
|
||||
WrenchFamilyInitializeAccount(out,out);
|
||||
// send notice here
|
||||
|
||||
}
|
||||
out["status"] = "OK";
|
||||
} catch (bad_parameter) {
|
||||
@@ -1111,7 +1114,7 @@ long WrenchFamilyUpdate(CVars in, CVars &out){
|
||||
return ret;
|
||||
}
|
||||
|
||||
long WrenchFamilyInitializeAccount(CVars in, CVars &out);
|
||||
|
||||
long WrenchFamilyManage(CVars in, CVars &out){
|
||||
/*
|
||||
wrenchboard=> select * from members_family;
|
||||
|
||||
Reference in New Issue
Block a user