Page MenuHomeSealhub

collections-subject.ts
No OneTemporary

collections-subject.ts

import * as Errors from "../../response/errors";
import { NoActionSubject } from "../subject";
import CollectionSubject from "../subject-types/collection-subject";
export default class CollectionsSubject extends NoActionSubject {
getName = () => "collections";
async getChildSubject(path_element: string) {
if (this.app.collections[path_element] === undefined) {
throw new Errors.BadSubjectPath(
`Unknown collection: '${path_element}'.`
);
}
return new CollectionSubject(this.app.collections[path_element]);
}
}

File Metadata

Mime Type
text/x-java
Expires
Sat, Sep 20, 14:29 (1 d, 10 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
929139
Default Alt Text
collections-subject.ts (534 B)

Event Timeline