refactor: migrate memory repository (#15532)

This commit is contained in:
Jason Rasmussen
2025-01-22 16:39:13 -05:00
committed by GitHub
parent ca3619658b
commit 1f19a65d1a
12 changed files with 47 additions and 55 deletions
+8 -5
View File
@@ -1,10 +1,9 @@
import { MemoryEntity } from 'src/entities/memory.entity';
import { MemoryType } from 'src/enum';
import { assetStub } from 'test/fixtures/asset.stub';
import { userStub } from 'test/fixtures/user.stub';
export const memoryStub = {
empty: <MemoryEntity>{
empty: {
id: 'memoryEmpty',
createdAt: new Date(),
updatedAt: new Date(),
@@ -15,8 +14,10 @@ export const memoryStub = {
data: { year: 2024 },
isSaved: false,
assets: [],
},
memory1: <MemoryEntity>{
deletedAt: null,
seenAt: null,
} as unknown as any,
memory1: {
id: 'memory1',
createdAt: new Date(),
updatedAt: new Date(),
@@ -27,5 +28,7 @@ export const memoryStub = {
data: { year: 2024 },
isSaved: false,
assets: [assetStub.image1],
},
deletedAt: null,
seenAt: null,
} as unknown as any,
};