Compare commits

..

No commits in common. "09d2039cf011931808a29e9b68ee98d059cbab74" and "70701aa124add3f3a7ed089cc13d0092ee87e030" have entirely different histories.

2 changed files with 6 additions and 12 deletions

View File

@ -59,10 +59,11 @@ export const envValidationSchema = Joi.object({
AUTO_SYNC_LOOKBACK_DAYS: Joi.number().integer().min(1).max(365).default(7), AUTO_SYNC_LOOKBACK_DAYS: Joi.number().integer().min(1).max(365).default(7),
AUTO_SYNC_MAX_USERS_PER_RUN: Joi.number().integer().min(1).max(500).default(25), AUTO_SYNC_MAX_USERS_PER_RUN: Joi.number().integer().min(1).max(500).default(25),
// Strongly recommended in production for error visibility, but not SENTRY_DSN: Joi.when("NODE_ENV", {
// required to boot: a missing Sentry DSN should mean "no error tracking is: "production",
// yet", not "the whole API refuses to start." then: Joi.string().uri().required(),
SENTRY_DSN: Joi.string().uri().optional().allow(""), otherwise: Joi.string().uri().optional().allow(""),
}),
SENTRY_TRACES_SAMPLE_RATE: Joi.number().min(0).max(1).default(0), SENTRY_TRACES_SAMPLE_RATE: Joi.number().min(0).max(1).default(0),
GOOGLE_CLIENT_ID: Joi.string().optional().allow(""), GOOGLE_CLIENT_ID: Joi.string().optional().allow(""),

View File

@ -1,4 +1,4 @@
import { IsBoolean, IsIn, IsNumber, IsOptional, IsString, IsUrl, ValidateNested } from "class-validator"; import { IsBoolean, IsIn, IsOptional, IsString, IsUrl, ValidateNested } from "class-validator";
import { Type } from "class-transformer"; import { Type } from "class-transformer";
export class UpdateNotificationPreferencesDto { export class UpdateNotificationPreferencesDto {
@ -30,11 +30,4 @@ export class SavePushSubscriptionDto {
@ValidateNested() @ValidateNested()
@Type(() => PushKeysDto) @Type(() => PushKeysDto)
keys!: PushKeysDto; keys!: PushKeysDto;
// Included by the browser's PushSubscription.toJSON() when the push
// service provides an expiry; not currently used server-side, but must be
// declared or the whitelist validation pipe rejects the whole request.
@IsOptional()
@IsNumber()
expirationTime?: number | null;
} }