Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DPCP-13] [DPCP-14] ar(feat) 2024 2nd semester rebase. #3

Merged
merged 17 commits into from
Jul 13, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ar(feat) lint
  • Loading branch information
angeloreale committed Jul 13, 2024
commit 5b799e90ae75f17e46a4a41153b5485b864970f6
6 changes: 3 additions & 3 deletions prisma/seed.mts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const cleanupDatabase = () => {

const seedType = process.argv[2];

let func
let func;

if (seedType === 'private') {
console.log('~ SEEDING PRIVATE DB ~');
Expand Down Expand Up @@ -155,7 +155,7 @@ if (seedType === 'private') {
throw error;
}
};
func = main
func = main;
} else {
console.log('~ SEEDING PUBLIC DB ~');

Expand Down Expand Up @@ -272,7 +272,7 @@ if (seedType === 'private') {
throw error;
}
};
func = main
func = main;
}

func().catch((err) => {
Expand Down
117 changes: 116 additions & 1 deletion stub.json
Original file line number Diff line number Diff line change
@@ -1 +1,116 @@
{"user":{"location":{"geo":null,"address":null,"name":"Nowhere"},"id":"3e65fd47ac7a69f61ee94bdb","email":"Josiah95@yahoo.com","emailVerified":false,"image":"https://cloudflare-ipfs.com/ipfs/Qmd3W5DuhgHirLHGVixi6V76LhCkZUz6pnFt5AJBiyvHye/avatar/1065.jpg","createdAt":"2024-07-13T09:53:18.714Z","updatedAt":"2024-07-13T09:53:18.714Z","name":"Kendra White II","firstName":"Vars","lastName":"Nothing","birthday":"2024-07-13T09:53:17.920Z","communitiesIds":[],"preferencesIds":[],"favoritesIds":[],"messagesSentIds":[],"messagesReceivedIds":[],"rolesIds":["66924e90d3e0d1ee7de3dc07"]},"community":{"id":"7fbbbdf9f4c1dbd74a7bf5f9","usersIds":["070d8cbdab50dbecfd15cb03","b4f6bddfdf57535eaff1eacf"],"status":"ACTIVE","name":"My Community 1","description":"My community 1 description","urls":["https://mycommunity.com"],"image":"https://cloudflare-ipfs.com/ipfs/Qmd3W5DuhgHirLHGVixi6V76LhCkZUz6pnFt5AJBiyvHye/avatar/727.jpg","favoritesIds":[],"preferencesIds":[],"rolesIds":["66924e90d3e0d1ee7de3dc07"],"messagesSentIds":[],"messagesReceivedIds":[],"userOwnerId":"d3f65ab21ffeb67eccab5b3f","userCreatorId":"b5eff404dcdbb0b60cbacc49"},"term":{"name":{"es":"Taxonomy Term 1","ca":null,"ga":null,"eu":null,"en":null,"cy":null,"mt":null,"is":null,"it":null,"pt":null,"de":null,"fr":null,"pl":null,"et":null,"cz":null,"sv":null,"da":null,"nl":null,"nb":null,"nn":null,"ro":null,"sr":null,"sl":null,"lv":null,"lt":null,"hr":null,"el":null,"hu":null,"bg":null,"bs":null,"sq":null},"description":{"es":"Lorem ipsum dolor sit amet consectetur","ca":null,"ga":null,"eu":null,"en":null,"cy":null,"mt":null,"is":null,"it":null,"pt":null,"de":null,"fr":null,"pl":null,"et":null,"cz":null,"sv":null,"da":null,"nl":null,"nb":null,"nn":null,"ro":null,"sr":null,"sl":null,"lv":null,"lt":null,"hr":null,"el":null,"hu":null,"bg":null,"bs":null,"sq":null},"id":"66924f711b325b0f31029cb7","status":"ACTIVE","type":"TAG","nature":"SEGMENTED","usersIds":["d14eec1caafcf6cb60e6fd6d"],"communitiesIds":["94beabd873caee79398ca4c3"],"listingIds":["66924f701b325b0f31029cb5"],"userOwnerId":"d14eec1caafcf6cb60e6fd6d","communityOwnerId":"beac0318d08c083a8f3ceb8f","userCreatorId":"d14eec1caafcf6cb60e6fd6d","communityCreatorId":"beac0318d08c083a8f3ceb8f"}}
{
"user": {
"location": { "geo": null, "address": null, "name": "Nowhere" },
"id": "3e65fd47ac7a69f61ee94bdb",
"email": "Josiah95@yahoo.com",
"emailVerified": false,
"image": "https://cloudflare-ipfs.com/ipfs/Qmd3W5DuhgHirLHGVixi6V76LhCkZUz6pnFt5AJBiyvHye/avatar/1065.jpg",
"createdAt": "2024-07-13T09:53:18.714Z",
"updatedAt": "2024-07-13T09:53:18.714Z",
"name": "Kendra White II",
"firstName": "Vars",
"lastName": "Nothing",
"birthday": "2024-07-13T09:53:17.920Z",
"communitiesIds": [],
"preferencesIds": [],
"favoritesIds": [],
"messagesSentIds": [],
"messagesReceivedIds": [],
"rolesIds": ["66924e90d3e0d1ee7de3dc07"]
},
"community": {
"id": "7fbbbdf9f4c1dbd74a7bf5f9",
"usersIds": ["070d8cbdab50dbecfd15cb03", "b4f6bddfdf57535eaff1eacf"],
"status": "ACTIVE",
"name": "My Community 1",
"description": "My community 1 description",
"urls": ["https://mycommunity.com"],
"image": "https://cloudflare-ipfs.com/ipfs/Qmd3W5DuhgHirLHGVixi6V76LhCkZUz6pnFt5AJBiyvHye/avatar/727.jpg",
"favoritesIds": [],
"preferencesIds": [],
"rolesIds": ["66924e90d3e0d1ee7de3dc07"],
"messagesSentIds": [],
"messagesReceivedIds": [],
"userOwnerId": "d3f65ab21ffeb67eccab5b3f",
"userCreatorId": "b5eff404dcdbb0b60cbacc49"
},
"term": {
"name": {
"es": "Taxonomy Term 1",
"ca": null,
"ga": null,
"eu": null,
"en": null,
"cy": null,
"mt": null,
"is": null,
"it": null,
"pt": null,
"de": null,
"fr": null,
"pl": null,
"et": null,
"cz": null,
"sv": null,
"da": null,
"nl": null,
"nb": null,
"nn": null,
"ro": null,
"sr": null,
"sl": null,
"lv": null,
"lt": null,
"hr": null,
"el": null,
"hu": null,
"bg": null,
"bs": null,
"sq": null
},
"description": {
"es": "Lorem ipsum dolor sit amet consectetur",
"ca": null,
"ga": null,
"eu": null,
"en": null,
"cy": null,
"mt": null,
"is": null,
"it": null,
"pt": null,
"de": null,
"fr": null,
"pl": null,
"et": null,
"cz": null,
"sv": null,
"da": null,
"nl": null,
"nb": null,
"nn": null,
"ro": null,
"sr": null,
"sl": null,
"lv": null,
"lt": null,
"hr": null,
"el": null,
"hu": null,
"bg": null,
"bs": null,
"sq": null
},
"id": "66924f711b325b0f31029cb7",
"status": "ACTIVE",
"type": "TAG",
"nature": "SEGMENTED",
"usersIds": ["d14eec1caafcf6cb60e6fd6d"],
"communitiesIds": ["94beabd873caee79398ca4c3"],
"listingIds": ["66924f701b325b0f31029cb5"],
"userOwnerId": "d14eec1caafcf6cb60e6fd6d",
"communityOwnerId": "beac0318d08c083a8f3ceb8f",
"userCreatorId": "d14eec1caafcf6cb60e6fd6d",
"communityCreatorId": "beac0318d08c083a8f3ceb8f"
}
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"maxOldSpaceSize": 8196,
"experimentalSpecifierResolution": "node",
"transpileOnly": true,
"esm": true
"esm": true,
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules", "**/nsx/**/*", "**/system/**/*", "**/mock/**/*"],
Expand Down
Loading