fix(server): memory lane title (#2772)

* fix(server): memory lane title

* feat: parallel requests

* pr feedback

* fix test

---------

Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
This commit is contained in:
Jason Rasmussen
2023-06-15 14:05:30 -04:00
committed by GitHub
parent 045bb855d2
commit 896645130b
14 changed files with 136 additions and 65 deletions

View File

@@ -1,2 +1,3 @@
export * from './asset-ids.dto';
export * from './map-marker.dto';
export * from './memory-lane.dto';

View File

@@ -0,0 +1,14 @@
import { Type } from 'class-transformer';
import { IsDate, IsNumber, IsPositive } from 'class-validator';
export class MemoryLaneDto {
/** Get pictures for +24 hours from this time going back x years */
@IsDate()
@Type(() => Date)
timestamp!: Date;
@IsNumber()
@IsPositive()
@Type(() => Number)
years = 30;
}