wixData insert

help fix the answer.
the fact is that a new record is created in the database
but I get a 500 error in response.

помогите исправить ответ.
дело в том, что в базе создается новая запись
но я получаю в ответ ошибку 500.

export function get_InsertUserPlans(request) {
let options = {
 "headers": {
 "Content-Type": "application/json"
 }
 };
let toInsert = {
 "email":  request.path[0],
 "plans":  request.path[1]
};
wixData.insert("usersPLans", toInsert)
 .then( () => {
     options.body = {
 "items": "ok"
 };
 return ok(options);
 } )
 .catch( (error) => {
     options.body = {
 "error": error
 };
 return serverError(options);
 } );
}
///....
return wixData.insert("usersPLans", toInsert)
///.....

Thanks! I missed
Спасибо! Я пропустил