Page 1 of 1

db problem

Posted: Fri Sep 20, 2013 4:53 pm
by Michael4771079

Hi,
I was adding a new collection and inadvertently deleted a collection and user data,
I got it all working again except I get an error on book screen

this is a screenshot of the error, I think it has something to do with "addresses" array, it happens when going to book screen after setting time and date screen but I can't figure it out

app name NEWCASTLETAXIios
and its shared

Image


db problem

Posted: Fri Sep 20, 2013 5:23 pm
by Maryna Brodina

Hello! I'll update


db problem

Posted: Fri Sep 20, 2013 6:21 pm
by Maryna Brodina

As we can see service user_read for "test" user returns the following result:
pre{
"createdAt":"2013-09-20 16:05:04.503",
"id":"xxxxxxxxxxxxxxxc55c",
"_updatedAt":"2013-09-20 17:01:00.411",
"addresses":[
"a street",
"b street",
"c street"
],
"email":"john@gmail.com",
"mobile":"xxxxxxxxxxx",
"name":"john",
"username":"test"
}/pre
So there is no taxicompanies field returns. It's because for current user field taxicompanies is empty.
You need check it in JS mapping, should be something like this:
preif (value) {
.....
}/pre


db problem

Posted: Fri Sep 20, 2013 7:33 pm
by Michael4771079

Thx Marina,
the problem is as you suggested, taxicompanies,
I deleted the mapping, it solved the problem, I don't need taxicompanies for this version.
I will examine backup to discover the error

thx as always