create-warlock 2.7.1 → 2.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-warlock",
3
- "version": "2.7.1",
3
+ "version": "2.7.3",
4
4
  "main": "./esm/index.js",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -30,11 +30,11 @@
30
30
  "@mongez/dotenv": "^1.1.9",
31
31
  "@mongez/config": "^1.0.26",
32
32
  "@mongez/supportive-is": "^2.0.4",
33
- "@warlock.js/auth": "2.7.1",
34
- "@warlock.js/cache": "2.7.1",
35
- "@warlock.js/cascade": "2.7.1",
36
- "@warlock.js/core": "2.7.1",
37
- "@warlock.js/logger": "2.7.1",
33
+ "@warlock.js/auth": "2.7.3",
34
+ "@warlock.js/cache": "2.7.3",
35
+ "@warlock.js/cascade": "2.7.3",
36
+ "@warlock.js/core": "2.7.3",
37
+ "@warlock.js/logger": "2.7.3",
38
38
  "@faker-js/faker": "^9.2.0",
39
39
  "dayjs": "^1.11.13"
40
40
  },
@@ -1,8 +1,6 @@
1
1
  // this file is called before any main file in the other modules
2
2
  // This will be called directly when the app starts
3
3
  import { onceConnected } from "@warlock.js/cascade";
4
- import { Post } from "./posts/models";
5
- import { User } from "./users/models/user";
6
4
 
7
5
  // This function will be called once the app is connected to the database
8
6
  // it will be called on app start
@@ -10,34 +8,5 @@ import { User } from "./users/models/user";
10
8
  // every time a file is changed
11
9
  // it could be useful to test some code or do small database modifications
12
10
  onceConnected(async () => {
13
- const user = await User.findOrCreate(
14
- {
15
- email: "hassanzohdy@gmail.com",
16
- },
17
- {
18
- name: "Hasan Zohdy",
19
- email: "hassanzohdy@gmail.com",
20
- password: "123456",
21
- },
22
- );
23
-
24
- await Post.create({
25
- author: user,
26
- title: "My first post",
27
- content: "This is my first post",
28
- });
29
-
30
- await Post.create({
31
- author: user,
32
- title: "My second post",
33
- content: "This is my second post",
34
- });
35
-
36
- await Post.create({
37
- author: user,
38
- title: "My third post",
39
- content: "This is my third post",
40
- });
41
-
42
- console.log("Done");
11
+ //
43
12
  });