forked from actframework/actframework
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfoo
More file actions
49 lines (46 loc) · 1.32 KB
/
foo
File metadata and controls
49 lines (46 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
var emails = ['[email protected]',
var tmpl = {
"_id" : ObjectId("53f2a2b6e4b085a0f451910a"),
"_class" : "com.pixolut.mrb.bi.models.User",
"fn" : "Rominder",
"ln" : "Dodd",
"email" : "[email protected]",
"accids" : [ ],
"perms" : {
},
"locks" : {
},
"priv" : "MRB_ADMIN",
"lastlogin" : ISODate("2014-10-09T03:20:33.572Z"),
"role" : "other",
"active" : true,
"version" : NumberLong(211),
"_modified" : ISODate("2014-10-09T03:20:33.573Z")
};
for(var i = 0; i < emails.length; ++i) {
var email = emails[i];
tmpl._id = new ObjectId();
tmpl.email = email;
tmpl.fn = "testuser" + i;
tmpl.ln = "macquarie";
db.user.save(tmpl);
}