@vivlab/api-database
Advanced tools
Comparing version 1.0.92 to 1.0.93
@@ -6,8 +6,6 @@ "use strict"; | ||
const utils_1 = require("../../utils"); | ||
const schemaAdd = new index_1.Ajv({ type: "string", format: "email", maxLength: 1000 }); | ||
async function add({ email, stripeAccount }) { | ||
schemaAdd.validate(email); | ||
await index_1.redis.cmd([ | ||
"zadd", | ||
`${stripeAccount}:contacts:list`, | ||
`${stripeAccount}:contacts:emails:list`, | ||
"nx", | ||
@@ -23,3 +21,3 @@ Date.now().toString(), | ||
"zrangebyscore", | ||
`${stripeAccount}:contacts:list`, | ||
`${stripeAccount}:contacts:emails:list`, | ||
"0", | ||
@@ -26,0 +24,0 @@ "+inf", |
{ | ||
"name": "@vivlab/api-database", | ||
"version": "1.0.92", | ||
"version": "1.0.93", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
462767
7361