Revert "remove thumbnail cache"

This reverts commit e0db4931f1.
This commit is contained in:
austinried
2022-03-22 20:39:50 +09:00
parent 4e978360ce
commit a279a81d06
6 changed files with 34 additions and 32 deletions

View File

@@ -15,7 +15,3 @@ export function mergeById<T extends { [id: string]: unknown }>(object: T, source
export function mapById<T>(object: ById<T>, ids: string[]): T[] {
return ids.map(id => object[id]).filter(a => a !== undefined)
}
export function mapId(entities: { id: string }[]): string[] {
return entities.map(e => e.id)
}