@remnawave/backend-contract 0.0.42 → 0.0.43
Sign up to get free protection for your applications and to get access to all the features.
@@ -23,6 +23,6 @@ exports.NodesSchema = zod_1.z.object({
|
|
23
23
|
cpuCount: zod_1.z.nullable(zod_1.z.number().int()),
|
24
24
|
cpuModel: zod_1.z.nullable(zod_1.z.string()),
|
25
25
|
totalRam: zod_1.z.nullable(zod_1.z.string()),
|
26
|
-
createdAt: zod_1.z.
|
27
|
-
updatedAt: zod_1.z.
|
26
|
+
createdAt: zod_1.z.string().transform((str) => new Date(str)),
|
27
|
+
updatedAt: zod_1.z.string().transform((str) => new Date(str)),
|
28
28
|
});
|
package/models/nodes.schema.ts
CHANGED
@@ -23,6 +23,6 @@ export const NodesSchema = z.object({
|
|
23
23
|
cpuModel: z.nullable(z.string()),
|
24
24
|
totalRam: z.nullable(z.string()),
|
25
25
|
|
26
|
-
createdAt: z.
|
27
|
-
updatedAt: z.
|
26
|
+
createdAt: z.string().transform((str) => new Date(str)),
|
27
|
+
updatedAt: z.string().transform((str) => new Date(str)),
|
28
28
|
});
|