Compare commits

..

No commits in common. "6947b1e4a41ddca05c9a403787df10a18504ecb0" and "d001c5a7fc2b50a9f5b7c11a6d018c69b71021fe" have entirely different histories.

2 changed files with 3 additions and 5 deletions

View File

@ -23,7 +23,7 @@ var (
scriptDir = path.Join("services", "registration")
)
func getParser(fp string, debug bool) (*asm.FlagParser, error) {
func getFlags(fp string, debug bool) (*asm.FlagParser, error) {
flagParser := asm.NewFlagParser().WithDebug()
_, err := flagParser.Load(fp)
if err != nil {
@ -128,7 +128,7 @@ func main() {
ctx := context.Background()
ctx = context.WithValue(ctx, "SessionId",sessionId)
pfp := path.Join(scriptDir, "pp.csv")
flagParser, err := getParser(pfp, true)
flagParser, err := getFlags(pfp, true)
if err != nil {
os.Exit(1)

View File

@ -172,7 +172,7 @@ func (h *Handlers) CreateAccount(ctx context.Context, sym string, input []byte)
_, err = utils.ReadEntry(ctx, h.userdataStore, sessionId, utils.DATA_ACCOUNT_CREATED)
if err != nil {
if db.IsNotFound(err) {
logg.Printf(logging.LVL_INFO, "Creating an account because it doesn't exist")
fmt.Println("Creating an account because it doesn't exist")
err = h.createAccountNoExist(ctx, sessionId, &res)
if err != nil {
return res, err
@ -315,8 +315,6 @@ func (h *Handlers) SaveFamilyname(ctx context.Context, sym string, input []byte)
if err != nil {
return res, nil
}
} else {
return res,fmt.Errorf("a family name cannot be less than one character")
}
return res, nil