Fix
This commit is contained in:
parent
6aa6955fa8
commit
1380575845
@ -45,7 +45,7 @@ export class WebSocketPayload {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
let wsEvent = <keyof typeof WebSocketEvent> rawPayload.event;
|
let wsEvent = WebSocketEvent[<keyof typeof WebSocketEvent> rawPayload.event];
|
||||||
|
|
||||||
return new WebSocketPayload(wsEvent, rawPayload.status, rawPayload.data);
|
return new WebSocketPayload(wsEvent, rawPayload.status, rawPayload.data);
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import {IIngredient} from "./IIngredient";
|
import {IIngredient} from "./IIngredient";
|
||||||
import * as mongoose from "mongoose";
|
import * as mongoose from "mongoose";
|
||||||
|
|
||||||
export interface IContainer extends mongoose.Document {
|
export interface IContainer {
|
||||||
slot: number;
|
slot: number;
|
||||||
content: IIngredient|undefined;
|
content: IIngredient|undefined;
|
||||||
volume: number;
|
volume: number;
|
||||||
|
@ -34,7 +34,9 @@ async function test() {
|
|||||||
|
|
||||||
|
|
||||||
let drink = await Drink.findOne( { name: "Mezzo Mix" } ).populate("ingredients.type");
|
let drink = await Drink.findOne( { name: "Mezzo Mix" } ).populate("ingredients.type");
|
||||||
console.log(drink);
|
if(!drink)return;
|
||||||
|
|
||||||
|
console.log(drink.ingredients);
|
||||||
//console.log(drink.ingredients)
|
//console.log(drink.ingredients)
|
||||||
/*let ingredient = new Ingredient();
|
/*let ingredient = new Ingredient();
|
||||||
ingredient.name = "Cola";
|
ingredient.name = "Cola";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user