refactor: last repository (#16042)

This commit is contained in:
Jason Rasmussen 2025-02-11 17:15:56 -05:00 committed by GitHub
parent 5f3a42a132
commit fa5aeaf539
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
71 changed files with 574 additions and 603 deletions

View file

@ -1,3 +1,4 @@
import { Injectable } from '@nestjs/common';
import { DateTime } from 'luxon';
import { AUDIT_LOG_MAX_DURATION } from 'src/constants';
import { AssetResponseDto, mapAsset } from 'src/dtos/asset-response.dto';
@ -10,6 +11,7 @@ import { setIsEqual } from 'src/utils/set';
const FULL_SYNC = { needsFullSync: true, deleted: [], upserted: [] };
@Injectable()
export class SyncService extends BaseService {
async getFullSync(auth: AuthDto, dto: AssetFullSyncDto): Promise<AssetResponseDto[]> {
// mobile implementation is faster if this is a single id