replicate to mobile

This commit is contained in:
Peter Maquiran
2024-09-06 14:38:30 +01:00
parent 27eeebb767
commit e7887d4e5a
10 changed files with 399 additions and 79 deletions
@@ -0,0 +1,16 @@
import { TestBed } from '@angular/core/testing';
import { UserPhotoRemoteRepositoryService } from './user-photo-remote-repository.service';
describe('UserPhotoRemoteRepositoryService', () => {
let service: UserPhotoRemoteRepositoryService;
beforeEach(() => {
TestBed.configureTestingModule({});
service = TestBed.inject(UserPhotoRemoteRepositoryService);
});
it('should be created', () => {
expect(service).toBeTruthy();
});
});
@@ -0,0 +1,15 @@
import { Injectable } from '@angular/core';
import Dexie, { PromiseExtended } from 'Dexie';
import { IUserPhotoLocalRepository } from 'src/app/core/chat/repository/user-photo/user-photo-local-repository';
import { UserPhotoTable, UserPhotoTableSchema } from 'src/app/infra/database/dexie/instance/chat/schema/user-foto';
import { chatDatabase } from 'src/app/infra/database/dexie/service';
import { DexieRepository } from 'src/app/infra/repository/dexie/dexie-repository.service';
@Injectable({
providedIn: 'root'
})
export class UserPhotoRemoteRepository extends DexieRepository<UserPhotoTable, UserPhotoTable> implements IUserPhotoLocalRepository {
constructor() {
super(chatDatabase.userPhoto, UserPhotoTableSchema)
}
}