mirror of
https://github.com/immich-app/immich.git
synced 2025-05-30 19:54:52 -04:00
* feat(server): efficient full app sync * add SQL, fix test compile issues * fix linter warning * new sync controller+service, add tests * enable new sync controller+service * Update server/src/services/sync.service.ts Co-authored-by: Daniel Dietzler <36593685+danieldietzler@users.noreply.github.com> --------- Co-authored-by: Daniel Dietzler <36593685+danieldietzler@users.noreply.github.com>
15 lines
384 B
TypeScript
15 lines
384 B
TypeScript
import { DatabaseAction, EntityType } from 'src/entities/audit.entity';
|
|
|
|
export const IAuditRepository = 'IAuditRepository';
|
|
|
|
export interface AuditSearch {
|
|
action?: DatabaseAction;
|
|
entityType?: EntityType;
|
|
userIds: string[];
|
|
}
|
|
|
|
export interface IAuditRepository {
|
|
getAfter(since: Date, options: AuditSearch): Promise<string[]>;
|
|
removeBefore(before: Date): Promise<void>;
|
|
}
|