diff --git a/endpoints/register.js b/endpoints/register.js
index <HASH>..<HASH> 100644
--- a/endpoints/register.js
+++ b/endpoints/register.js
@@ -65,7 +65,7 @@ class Authentication extends Endpoint {
       refresh_token: null,

       last_ip: []

     }

-    this.db.collection('users').insertOne(user)

+    await this.db.collection('users').insertOne(user)

     auth.saveIP.bind(this)(user.user_key, ip, 'register', true)

 

     return user.user_key
fix: Wait for actual user insertion before returning response