Migrated loadCreatures to nested sets
This commit is contained in:
@@ -1,6 +1,19 @@
|
||||
import SimpleSchema from 'simpl-schema';
|
||||
import STORAGE_LIMITS from '/imports/constants/STORAGE_LIMITS';
|
||||
|
||||
export interface Reference {
|
||||
collection: string,
|
||||
id: string,
|
||||
}
|
||||
|
||||
export interface TreeDoc {
|
||||
_id: string,
|
||||
root: Reference,
|
||||
parentId?: string,
|
||||
left: number,
|
||||
right: number,
|
||||
}
|
||||
|
||||
const RefSchema = new SimpleSchema({
|
||||
id: {
|
||||
type: String,
|
||||
@@ -57,19 +70,6 @@ const ChildSchema = new SimpleSchema({
|
||||
}
|
||||
});
|
||||
|
||||
export interface Reference {
|
||||
collection: string,
|
||||
id: string,
|
||||
}
|
||||
|
||||
export interface TreeDoc {
|
||||
_id: string,
|
||||
root: Reference,
|
||||
parentId?: string,
|
||||
left: number,
|
||||
right: number,
|
||||
}
|
||||
|
||||
export const treeDocFields = {
|
||||
_id: 1,
|
||||
root: 1,
|
||||
|
||||
Reference in New Issue
Block a user