remove thumbnail cache

This commit is contained in:
austinried
2022-03-22 14:06:30 +09:00
parent 2069115df5
commit e0db4931f1
6 changed files with 32 additions and 34 deletions

View File

@@ -15,3 +15,7 @@ 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)
}