Update index.js
Browse files
index.js
CHANGED
@@ -326,9 +326,10 @@ app.post('/api/v2/key/generate-key', authenticateApiKey, apiLimiter, async (req,
|
|
326 |
|
327 |
const userDocument = new ApiKey({
|
328 |
key: newKey,
|
|
|
329 |
createdAt: new Date(),
|
330 |
expiresAt: expirationDate,
|
331 |
-
|
332 |
type: "premium",
|
333 |
is_banned: false,
|
334 |
email: email || null
|
|
|
326 |
|
327 |
const userDocument = new ApiKey({
|
328 |
key: newKey,
|
329 |
+
owner: userIdNumber,
|
330 |
createdAt: new Date(),
|
331 |
expiresAt: expirationDate,
|
332 |
+
is_expired: false,
|
333 |
type: "premium",
|
334 |
is_banned: false,
|
335 |
email: email || null
|