From 87d14a9545302a02c815843c2a56c2a031a14423 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 17 Jan 2017 09:12:33 +0900 Subject: :v: --- src/api/models/post.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/api/models/post.ts') diff --git a/src/api/models/post.ts b/src/api/models/post.ts index bea92a5f61..04468dd2ae 100644 --- a/src/api/models/post.ts +++ b/src/api/models/post.ts @@ -1 +1,3 @@ -export default global.db.collection('posts'); +import db from '../../db/mongodb'; + +export default db.collection('posts'); -- cgit v1.2.3-freya