@zyacreatives/shared 1.8.3 → 1.8.4
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/dist/schemas/project.js
CHANGED
|
@@ -168,12 +168,6 @@ exports.CreateProjectInputSchema = zod_openapi_1.z
|
|
|
168
168
|
message: "Start date cannot be in the future",
|
|
169
169
|
});
|
|
170
170
|
if (endDate) {
|
|
171
|
-
if (endDate > today)
|
|
172
|
-
ctx.addIssue({
|
|
173
|
-
path: ["endDate"],
|
|
174
|
-
code: "custom",
|
|
175
|
-
message: "End date cannot be in the future",
|
|
176
|
-
});
|
|
177
171
|
if (startDate > endDate)
|
|
178
172
|
ctx.addIssue({
|
|
179
173
|
path: ["startDate"],
|
package/package.json
CHANGED
package/src/schemas/project.ts
CHANGED
|
@@ -176,12 +176,6 @@ export const CreateProjectInputSchema = z
|
|
|
176
176
|
message: "Start date cannot be in the future",
|
|
177
177
|
});
|
|
178
178
|
if (endDate) {
|
|
179
|
-
if (endDate > today)
|
|
180
|
-
ctx.addIssue({
|
|
181
|
-
path: ["endDate"],
|
|
182
|
-
code: "custom",
|
|
183
|
-
message: "End date cannot be in the future",
|
|
184
|
-
});
|
|
185
179
|
if (startDate > endDate)
|
|
186
180
|
ctx.addIssue({
|
|
187
181
|
path: ["startDate"],
|