Skip to main content

migrate old users

this tab only for users already there apps on production (then have build there system and want to add this chat system)

  1. after you finish the server installation you want to migrate the old users to vchat system
  2. copy all users thumb images from your system to v_chat_sdk_backend/public/profile
  3. in .env enable ENABLE_MIGRATE_OLD_USERS = true
  4. build script by your backend system and call this api POST {{baseUrl}}user/migrate-old-users
  5. Send data as json format JSON.stringify([{},{}]) to the body
[
{
"email":"",
"name":"",
"image":""
} ,
{
"email":"",
"name":"",
"image":"default" //for use default image if user has not image
}
]
  1. if user image == null pass it default v chat will use default user image for it