Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

db problem

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

db problem

Hello! I'll update

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

db problem

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

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

db problem

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

Return to “Issues”