MCPcopy
hub / github.com/immich-app/immich / getExtensions

Method getExtensions

server/src/decorators.ts:241–258  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

239 }
240
241 getExtensions() {
242 const extensions: CustomExtensions = {};
243
244 if (this.items.length > 0) {
245 extensions[ApiCustomExtension.History] = this.items;
246 }
247
248 for (const item of this.items.toReversed()) {
249 if (item.state === 'Added' || item.state === 'Updated') {
250 continue;
251 }
252
253 extensions[ApiCustomExtension.State] = item.state;
254 break;
255 }
256
257 return extensions;
258 }
259
260 private push(item: HistoryEntry) {
261 if (!item.version.startsWith('v')) {

Callers 10

EndpointFunction · 0.45
asset.dto.tsFile · 0.45
queue.dto.tsFile · 0.45
search.dto.tsFile · 0.45
server.dto.tsFile · 0.45
asset-media.dto.tsFile · 0.45
memory.dto.tsFile · 0.45
shared-link.dto.tsFile · 0.45
person.dto.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected