Skip to content

Commit cbf302d

Browse files
committed
updated file schema to reference snippit schema
1 parent 48d325f commit cbf302d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/models/file.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ var FileSchema = new Schema({
1313
filePath: String,
1414
contents: String,
1515
dependencies: [],
16-
snippitRatings: {} // key will be name of method, value will be array of snippits
16+
_snippitIds: [Schema.Types.ObjectId]
1717
});
1818

1919
FileSchema.plugin(textSearch);

0 commit comments

Comments
 (0)