Cannot read property 'perform' of undefined
iMokhles opened this issue · comments
Okey i was able to fix this issue by setting the Model name
same asSchema name
From this
export default class UserModel {
name = "Users";
// Note: no "id" in "props", it will be automatically ignored otherwise
props = {
userId: "string",
name: "string",
email: "string",
phone: "string",
lang_code: "string",
bio: "string",
site: "string",
country: "string",
birth_date: "string",
gender: "string",
show_phone: "boolean",
show_name: "boolean",
is_blocked: "boolean",
access_token: "string",
token_type: "string",
expires_in: "string",
created_at: "string",
isCurrentUser: "boolean",
}
}
to this
export default class Users {
name = "Users";
// Note: no "id" in "props", it will be automatically ignored otherwise
props = {
userId: "string",
name: "string",
email: "string",
phone: "string",
lang_code: "string",
bio: "string",
site: "string",
country: "string",
birth_date: "string",
gender: "string",
show_phone: "boolean",
show_name: "boolean",
is_blocked: "boolean",
access_token: "string",
token_type: "string",
expires_in: "string",
created_at: "string",
isCurrentUser: "boolean",
}
}
Hey @iMokhles, good one. I'll be happy to help in case you have other issue :)