@riocrypto/common-server 1.0.2730 → 1.0.2733
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/models/auth.js
CHANGED
|
@@ -168,6 +168,12 @@ const buildAuth = (mongoose) => {
|
|
|
168
168
|
});
|
|
169
169
|
AuthSchema.pre("save", function (done) {
|
|
170
170
|
return __awaiter(this, void 0, void 0, function* () {
|
|
171
|
+
if (this.isModified("email")) {
|
|
172
|
+
const email = this.get("email");
|
|
173
|
+
if (email) {
|
|
174
|
+
this.set("email", email.toLowerCase());
|
|
175
|
+
}
|
|
176
|
+
}
|
|
171
177
|
if (this.isModified("password")) {
|
|
172
178
|
const hashed = yield password_1.Password.toHash(this.get("password"));
|
|
173
179
|
this.set("password", hashed);
|
|
@@ -17,6 +17,7 @@ interface BinanceRFQOrderAttrs {
|
|
|
17
17
|
bidQuantity?: number | null;
|
|
18
18
|
offerPrice?: number | null;
|
|
19
19
|
offerQuantity?: number | null;
|
|
20
|
+
rioOrderId?: string | null;
|
|
20
21
|
}
|
|
21
22
|
interface BinanceRFQOrderDoc extends Document {
|
|
22
23
|
rfqId: string;
|
|
@@ -35,6 +36,7 @@ interface BinanceRFQOrderDoc extends Document {
|
|
|
35
36
|
bidQuantity: number | null;
|
|
36
37
|
offerPrice: number | null;
|
|
37
38
|
offerQuantity: number | null;
|
|
39
|
+
rioOrderId: string | null;
|
|
38
40
|
createdAt: Date;
|
|
39
41
|
updatedAt: Date;
|
|
40
42
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2733",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@google-cloud/secret-manager": "^5.3.0",
|
|
29
29
|
"@google-cloud/storage": "^6.9.5",
|
|
30
30
|
"@hyperdx/node-opentelemetry": "^0.7.0",
|
|
31
|
-
"@riocrypto/common": "^1.0.
|
|
31
|
+
"@riocrypto/common": "^1.0.2528",
|
|
32
32
|
"@types/express": "^4.17.13",
|
|
33
33
|
"axios": "^1.7.4",
|
|
34
34
|
"crypto-js": "^4.2.0",
|