Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ✨ add Date helper to format * ✨Add field born at to Employee entity * ✨ Add template to download answer * ✨ Get relation of answer * ✨ Add download controller * 🔥 Remove unused code * ✨ Add config for handlebars * 📦 Update container config * 🚧 Trying to download a answer * 🚧 WIP download answer * 🔀 Squashed commit of the following: commit e7b3f9e762f2f8b5d00cfa4928ff37daa7d51d6e Author: Malo <malolebrin@gmail.com> Date: Wed May 3 15:10:52 2023 +0200 🐛 fix error fetchings relations users (#223) fix error fetchings relations users commit c65984b90f46c97a8bca8c0dc930bbd4821f0281 Author: Malo <malolebrin@gmail.com> Date: Wed May 3 09:53:06 2023 +0200 🐛 error-sql-updateeventstatusjob-on-answer-update (#221) * ✨ Give name to uniq contraints * 🐛 Revert pnpm version * 🐛Fix error pnpm commit 4c19a0bfe42902df38b8f70d33ff4121e37c1c2b Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Tue May 2 18:28:29 2023 +0200 ⬆️ Update dependency pino to v8.12.0 (#218) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit 53bcf2507561b41357581d8bafb6f594646f1689 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Tue May 2 18:28:05 2023 +0200 Update pnpm to v8.4.0 (#219) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit b502085aa1dd211e658b555b46d6136d0e3928e0 Author: Malo <malolebrin@gmail.com> Date: Thu Apr 27 16:37:19 2023 +0200 ✨ Create notifications for events updated on updateEventsStatus cron job (#217) commit 20ec88df59794a90b01a260191cf6dff8e349c93 Author: Malo <malolebrin@gmail.com> Date: Thu Apr 27 09:45:48 2023 +0200 ⚡️ add send mail event completed on update status event job (#216) * ✨ Send mail when status is just updated * ✨ Add updateed at commit be042af620921d7834f998408714288649c928a4 Author: Malo <malolebrin@gmail.com> Date: Wed Apr 26 22:04:18 2023 +0200 ✨ Signatur workflow implementation (#214) commit 2aa0167d16af81a38593fff3d291df7d5a042bcb Author: Malo <malolebrin@gmail.com> Date: Tue Apr 25 11:23:05 2023 +0200 🩹 fix sending right compan yand improove perfs (#213) commit ef8e85b470caaa21551f1b4bba4802e6e561c7f0 Author: Malo <malolebrin@gmail.com> Date: Tue Apr 25 10:12:10 2023 +0200 ⬆️ Update deps (#212) commit ce59f1c41710c292746020cd2702ea155c1283f9 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Tue Apr 25 10:04:12 2023 +0200 ⬆️ Update pnpm to v8.3.1 (#204) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit cf462aed415bbd429b62470ce8463fd3f18bd610 Author: Malo <malolebrin@gmail.com> Date: Tue Apr 25 10:03:49 2023 +0200 ⬆️ Update node version docker image (#210) commit b425eeae7c10a18e9c1f7d54d512779c95653b84 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Tue Apr 25 10:00:02 2023 +0200 ⬆️ Update Node.js to v20 (#209) * Update Node.js to v20 * ✨Add request for double auth (#211) * ✨ add endpoint to check if twoFactorCode is write * ✨ Fix route for checking answer twoFactor --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Malo <malolebrin@gmail.com> commit 854d0b11c87f8f20a6677f46b1a9bec6aa88ea59 Author: Malo <malolebrin@gmail.com> Date: Tue Apr 25 09:55:10 2023 +0200 ✨Add request for double auth (#211) * ✨ add endpoint to check if twoFactorCode is write * ✨ Fix route for checking answer twoFactor commit 0039b324aa9f92e312d5d7e55dfe3c0ff3cf7802 Author: Malo <malolebrin@gmail.com> Date: Thu Apr 20 17:24:18 2023 +0200 ♻️use mailjet variables instead of injecting templates (#208) * 🔧 Better error handling * ♻️ Refacto Raise Answer with template embed in mailjet just use ID * ♻️ Refactoring event completed email * ♻️ Refactoring reset password template commit 8727b6620a248f9001e75c2e79e00463ea699b7d Author: Malo <malolebrin@gmail.com> Date: Tue Apr 18 22:11:46 2023 +0200 ✨ Sending email for reation on event (#206) commit 0470240f879c532fe605ac2b4607fff8a323ace7 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Mon Apr 17 22:50:48 2023 +0200 Update dependency typeorm to v0.3.15 (#201) commit c86b023c96825abd7cd66b5292ebe2319d4dc071 Author: Malo <malolebrin@gmail.com> Date: Mon Apr 17 10:47:57 2023 +0200 ♻️refacto jobs with better sql filters (#203) * :card_file_box: clean database with users not logged more than 2 years ago * ⚡️ Better job perfs * ⚡️ Optimize call on database * Update status when event is completed for cron job commit 423d481021166810cc25bb82eb9b116772ba30dd Author: Malo <malolebrin@gmail.com> Date: Sun Apr 16 21:35:56 2023 +0200 ✨ send mail to raise an answer cron (#200) * ✨ Create cron job to send Raise email when start of event is under 6 days * ✨ trigger every day cron job to send mail raise answer * 🔥 Remove comment * ✨ Update auto raise conditions commit 163ad4309f6e478879269bbe90c14d8b5a94e94d Author: Malo <malolebrin@gmail.com> Date: Fri Apr 14 14:13:03 2023 +0200 🔥 Clean useless code (#199) * 🔥 Remove cloudinary config in cron jobs * 🔥 Remove useless TODO commit 7e191f4d7bf19ff90ab636ccca33480c5e2a2b35 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Fri Apr 14 08:36:38 2023 +0200 Update Node.js to v18.16 (#196) commit 529ea17794e1986fe425aafbeeb66837d5418baa Author: Malo <malolebrin@gmail.com> Date: Thu Apr 13 12:03:25 2023 +0200 ✨ Update Raise answer payload (#195) * ✨Send answer updated * 🩹Fix eslint errors commit b883c49a32d13b644696f776a926777e31dbb96c Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Thu Apr 13 08:24:20 2023 +0200 ⬆️ Update pnpm to v8 (#171) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit 342cd484220adbf48944022dee08ce22bf27a71c Author: Malo <malolebrin@gmail.com> Date: Wed Apr 12 16:26:13 2023 +0200 ✨ send mail and notifications when event is completed (#194) * ✨ Better function to update status * 🧑💻 Handle error if entities are missing * ✅ Add function to generate notification type based on event status * ✨Create job to update event status and send notifications * ✨ Add job to send mail to all users link to company who create this event when he's completed * 🩹 Fix string typo * Use event name in template commit 2d82a1199ff979497672e633a648118f4699974e Author: Malo <malolebrin@gmail.com> Date: Tue Apr 11 19:16:14 2023 +0200 🚑 Notification title cannot be null in prod (#193) 🩹 Fix prod pb commit 9ac034d815d10542ffc12959e9ce8cde148ab543 Author: Malo <malolebrin@gmail.com> Date: Tue Apr 11 19:09:04 2023 +0200 ✨build notification details (#191) * ✨ Can create notification for employee creation * 🧑💻 Improve loggin errors * ✨ Create Notification on employee creation * ✨ Improove verificztion on user fetch notifications * 🩹 Fix eslint problems * ✨ Add title and description to notification entity * 🩹 Fix title of notification builder commit f41930eb92afbacaa3aac5a7d003347475c87aaa Author: Malo <malolebrin@gmail.com> Date: Mon Apr 10 00:34:42 2023 +0200 ✨ Raise employee (#189) * 🚧 WIP * ✨Build template to raise an employee * ✨ Raise Employee commit 77d07c33540d02c36055757f1cb5da84a01c625d Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Sun Apr 9 19:33:12 2023 +0200 Update vitest monorepo to ^0.30.0 (#188) commit 4eabb770458bb55c49869420d75731b19edc95d8 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Sun Apr 9 13:11:01 2023 +0200 ⬆️ Update dependency typeorm to v0.3.14 (#187) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit 8ea1aacde6e025baefff17948047d67ed313bc06 Author: Malo <malolebrin@gmail.com> Date: Sat Apr 8 21:56:27 2023 +0200 ✨ Recovery password & 🔥 Remove nodemailer (#186) * 📚 Add more space * ✨ Create template for recovery password * ✨ Send Mail on recovery password * 🔥 Remove Node Mailer * ✨ Update link to recovery password * ✨ Send mail to recovery password with mailjet * ✨ Recovey password * 🔀 Squashed commit of the following: commit 363254a4dbd154998f58b17aba0f994dd2e15db8 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Sat Apr 8 21:50:17 2023 +0200 ⬆️ Update dependency typeorm to v0.3.13 (#184) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * ⬆️ updates deps commit 363254a4dbd154998f58b17aba0f994dd2e15db8 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Sat Apr 8 21:50:17 2023 +0200 ⬆️ Update dependency typeorm to v0.3.13 (#184) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit 6a37e76792e823dd0d8c729b91f994f74b2da11e Author: malolebrin <malolebrin@gmail.com> Date: Thu Apr 6 08:56:23 2023 +0200 🔖 New version commit c9bf59d8f4323653a5eab53cef68e323a4d6ff63 Author: Malo <malolebrin@gmail.com> Date: Tue Apr 4 20:26:14 2023 +0200 🔧 Config test (#179) * 🔧 Config tests for API * 🌱 Add data fixtures for tests * ✅ Tests answers helpers * 👷🏽♀️ Add tests in github actions * ✅ Test helpers array * ✅ Tests basics helpers * 🩹Fix lint error * 🔧 Add ts cobfig for tests * 🔧cofnig test * 🔥 Remove fake credentials * 👷🏽♀️ Use Vitest without watch mode in CI * 🔧Config test * 🔧 Update TS config * FIX: eslint errors * 🔧pdate config * 🔧fix config * Fix eslint * Move tests in src * 🩹 Fix eslint errors * ✅ Add tests for event helpers * ✅ Add tests for redis helpers * ✅ User Helper tests * Update Ci config commit e8209713d927f030e583fa5f6ed676cba9085532 Author: malolebrin <malolebrin@gmail.com> Date: Mon Apr 3 10:43:58 2023 +0200 👷🏽♀️ Fix CI to create release on tags commit dafdf6f92aea4e599f0aa97e858dde215b5fbf6b Author: malolebrin <malolebrin@gmail.com> Date: Mon Apr 3 10:22:08 2023 +0200 🔥 console.log commit 035ec3623091cc3b450b1db261d80326f725457f Author: malolebrin <malolebrin@gmail.com> Date: Mon Apr 3 10:21:00 2023 +0200 🔐 Add guards for answer entity secrets fields commit e5abacce70403990a0d6a3d7e01b4717f15d1f2f Author: malolebrin <malolebrin@gmail.com> Date: Fri Mar 31 18:51:15 2023 +0200 🔥 Removed console log commit 00d4a134ccfc98b6f3c0b57f4173ad4b98b3395b Author: Malo <malolebrin@gmail.com> Date: Fri Mar 31 18:45:24 2023 +0200 🔐 Filter secrets fields in entities (#177) * ♻️ Refacto userResponse function with more maintainable code * 🔐 Protect user private data * 🔐 Remove users in company in signup because company cannot have other users on signup * 🩹 Fix errors caused by hidden private fields commit ce20cb2fd32fd9573958fdd35811746d6f5ba8de Author: Malo <malolebrin@gmail.com> Date: Fri Mar 31 16:31:34 2023 +0200 🚀Config redis db for prod (#175) * ✨Add warning when prod mode * 🚀 Deployement worked * 🚀 Un comment cron start commit 7511218aef7a74a11b1cf653425e340b774dc366 Author: Malo <malolebrin@gmail.com> Date: Thu Mar 30 16:43:59 2023 +0200 🔐 Add JWt verifications (#102) * 🔐 Add JWt verifications * Squashed commit of the following: commit dc145a714c8d9938ed0aeae637b60d640eaef32e Author: malolebrin <malolebrin@gmail.com> Date: Wed Mar 29 18:11:51 2023 +0200 🔧 Add port in variables commit 14c8d395eeb172cb2ffe7be29a26fa5d79c69bc0 Author: malolebrin <malolebrin@gmail.com> Date: Wed Mar 29 17:55:24 2023 +0200 🔖 Update config bullMQ and new version commit a6a4ee595918864124300b2e2b2b9da3500a3a4b Author: malolebrin <malolebrin@gmail.com> Date: Wed Mar 29 11:20:00 2023 +0200 🚀 New version to fix redis connection commit a79a36934dc20c4f01115a72061bdc4f5baa1caa Author: malolebrin <malolebrin@gmail.com> Date: Wed Mar 29 09:06:04 2023 +0200 🔖 New version commit 21f2db8278f4cc307060fc0c0eeb6eb14968c343 Author: malolebrin <malolebrin@gmail.com> Date: Wed Mar 29 09:04:51 2023 +0200 🩹 Remove usused import commit ceef7da7006ed300b93cecc853b7b72476cd84ef Author: Malo <55061197+MaloLebrin@users.noreply.github.com> Date: Wed Mar 29 09:03:14 2023 +0200 🔧 Redis prod env config (#173) * :wrench: Add redis config for production * :bookmark: new version * :wrench: redis config commit b374f6fded5c547e36c519b290fa61ed91a2d4b2 Author: malolebrin <malolebrin@gmail.com> Date: Tue Mar 28 15:38:33 2023 +0200 :bookmark: New version commit c801c96023a380838814e85dc13bdde51a4f627f Author: Malo <55061197+MaloLebrin@users.noreply.github.com> Date: Tue Mar 28 15:37:22 2023 +0200 :wrench: Add redis config for production (#172) commit 712ede4473df14474c16741ac344cfd316366e76 Author: malolebrin <malolebrin@gmail.com> Date: Tue Mar 28 14:51:21 2023 +0200 :ambulance: docker cannot build commit 9f4f97a1f88539df08dd256617097d6c92f86d7d Author: malolebrin <malolebrin@gmail.com> Date: Tue Mar 28 14:38:52 2023 +0200 update lock file commit 4c596dc764b1ba79e48656b42aa23597423840cb Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Tue Mar 28 14:34:47 2023 +0200 Update pnpm to v7.30.5 (#168) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit faee66f49d4147643896592e3ca61311f788ba33 Author: malolebrin <malolebrin@gmail.com> Date: Mon Mar 27 15:40:22 2023 +0200 📚 Update gitignore commit 6c467219d1bf3bc47369be3f77919d5293358567 Author: Malo <55061197+MaloLebrin@users.noreply.github.com> Date: Sun Mar 26 01:57:59 2023 +0100 📚 Add status create release badge commit 7a00f5c2e2ec41b6ee6a003968260579a5d6608c Author: malolebrin <malolebrin@gmail.com> Date: Sun Mar 26 01:54:28 2023 +0100 🚀Update version commit f649e6079aa0cdef758e708fd8df913d8ac90d78 Author: malolebrin <malolebrin@gmail.com> Date: Sun Mar 26 01:53:53 2023 +0100 🚀 Update config to auto deploy commit 49f90de17720ac2fbf1178b43a1ff46623488347 Author: malolebrin <malolebrin@gmail.com> Date: Sun Mar 26 01:51:11 2023 +0100 🚀 Update fly toml config commit 5dbd8f8af4a46e076f3cead3d3e8de65172bc840 Author: malolebrin <malolebrin@gmail.com> Date: Sat Mar 25 20:17:18 2023 +0100 :construction_worker: add ci to creat auto release on Tag commit 634081ddae87c5be6ef942438db7e6d5b6afaa23 Author: malolebrin <malolebrin@gmail.com> Date: Fri Mar 24 16:14:13 2023 +0100 deploy on release onnly commit 564bb389a455f00c8653926e3cd889673fb8feb0 Author: malolebrin <malolebrin@gmail.com> Date: Fri Mar 24 16:11:24 2023 +0100 🚀 update deploy config commit c12b44bedea3de7e8e715348b683e97fd6edf320 Author: malolebrin <malolebrin@gmail.com> Date: Fri Mar 24 15:48:31 2023 +0100 Remove en file commit e0fd0c65067c1c09ac2e9ec2cac1566166658c57 Author: malolebrin <malolebrin@gmail.com> Date: Fri Mar 24 15:47:08 2023 +0100 🚀 Try to deploy app on FLy.io commit 5e8f2711db0db6f099a47642777945a3150dace0 Author: malolebrin <malolebrin@gmail.com> Date: Thu Mar 23 10:38:54 2023 +0100 ✨ Add eventId in JWT Token of Answer commit 6fa26498732163f6b8506e3a7c1eccbe1c0d9a89 Author: Malo <55061197+MaloLebrin@users.noreply.github.com> Date: Fri Mar 24 13:36:51 2023 +0100 ✨add endpoint fetch data for answer event (#169) * ✨Add Endpoint to fetch employee data for signature * 🔐 Add function to filter answer's keys * ✨ Never send anwser secret keys * 🩹 Fix errors on create answer data * 🔐 Create two factor auth for answers * 🌱 Update seeder data * 🔐 Send only necessary fields commit cb92310bbbef61039f3a163084718603818a6ff2 Author: malolebrin <malolebrin@gmail.com> Date: Wed Mar 22 09:47:28 2023 +0100 ✨ Add Endpoints for badges commit fcee77d4f0be5da6268497e0d9824df856094a08 Author: Malo <55061197+MaloLebrin@users.noreply.github.com> Date: Wed Mar 22 09:09:45 2023 +0100 ✨add reward badges (#155) * 🎉 Init badge entity * 🚧 Create badges * :twisted_rightwards_arrows: Squashed commit of the following: commit c6735f760ecb6985ec32514888ffd1e2b80f2194 Author: malolebrin <malolebrin@gmail.com> Date: Tue Mar 21 13:34:30 2023 +0100 ✨Add endpoint to update company with strong validation commit 7acc55e03153ab1b6c202c849c869dd886b20a52 Author: malolebrin <malolebrin@gmail.com> Date: Tue Mar 21 11:52:17 2023 +0100 ✨ Add form to update user and address with strong validation commit afca47340df8aca2bf7410c1f708c64b984c7a3e Author: malolebrin <malolebrin@gmail.com> Date: Tue Mar 21 09:10:00 2023 +0100 🩹 Fix TS errors commit 954186e0c3f145e59062e258787fd72cd24a21b3 Author: malolebrin <malolebrin@gmail.com> Date: Tue Mar 21 09:06:53 2023 +0100 ♻️ Remove owner relations commit 4881c8b5cd0763b59ebc0cba75b3598a6639de6f Author: malolebrin <malolebrin@gmail.com> Date: Tue Mar 21 01:16:40 2023 +0100 ✨ Create User for company commit 63a8ad6514650dc70145cff847a598aaa9f2e718 Author: malolebrin <malolebrin@gmail.com> Date: Tue Mar 21 00:05:36 2023 +0100 🩹 Fix es lint indentation commit 371eb45b241c2b9e677dfc1f7d3422b3c625d084 Author: malolebrin <malolebrin@gmail.com> Date: Tue Mar 21 00:05:10 2023 +0100 ✨return company and user on signup commit ad6f87354bb0a8db775be0b1ed9053edcff2d366 Author: malolebrin <malolebrin@gmail.com> Date: Mon Mar 20 18:16:59 2023 +0100 🩹 removed seeders commit 5a6b1c27ebfd7fd13d0bb8216671e2ce7094920d Author: Malo <55061197+MaloLebrin@users.noreply.github.com> Date: Mon Mar 20 18:14:35 2023 +0100 ✨ manage multi account (#166) * ✨ Add owner role and remove checkUserRole in route * 🧑💻 Base entity id is readonly * 🌱 Seeder with company entity * 🏗 complete mutli account new achitectur * 🧑💻 Add readonly TS property on RelationId * ✨Owners is a OneToMany relation * ✨ CheckUserRole can have string as enum and array of roles as args * ✨Add endpoints to getCompany and updates Owners * 🔥 removed unused migrations * ✨remove seeders on launch * ✨ fetch company with user on login * 🩹 Fix some issue after new architecture * ✨ Add endpoint to create new user in company, and rework endpoint to signup commit 08d50b14a62370dcef9be447f9d0ab34d225b7e8 Author: malolebrin <malolebrin@gmail.com> Date: Mon Mar 20 18:14:19 2023 +0100 Squashed commit of the following: commit 1b382661532dfccde816dff3f6d6e0c6b1025dd9 Author: malolebrin <malolebrin@gmail.com> Date: Mon Mar 20 16:35:14 2023 +0100 ✨ Add endpoint to create new user in company, and rework endpoint to signup commit 2081f747a7c7dbb2b3e72ed958daed919d59cafd Author: malolebrin <malolebrin@gmail.com> Date: Mon Mar 20 16:01:16 2023 +0100 🩹 Fix some issue after new architecture commit 23e8d5fb90b0eae1fd39e9752d856cde7af8d6c3 Author: malolebrin <malolebrin@gmail.com> Date: Mon Mar 20 14:01:40 2023 +0100 ✨ fetch company with user on login commit ea1d35788a89df5173b80a775b8acc02553f7830 Author: malolebrin <malolebrin@gmail.com> Date: Mon Mar 20 13:52:33 2023 +0100 ✨remove seeders on launch commit 3d6b6a686d770bd49c8a15b4a6681bc3ad78170e Author: malolebrin <malolebrin@gmail.com> Date: Mon Mar 20 13:20:07 2023 +0100 🔥 removed unused migrations commit a03307eead6d68848ff1bc5eb4b09ec6fa8f45f0 Author: malolebrin <malolebrin@gmail.com> Date: Mon Mar 20 11:19:53 2023 +0100 ✨Add endpoints to getCompany and updates Owners commit 5a790a7fafb03a1a0aac365179d3352ecc0ce41f Author: malolebrin <malolebrin@gmail.com> Date: Mon Mar 20 10:41:19 2023 +0100 ✨ CheckUserRole can have string as enum and array of roles as args commit ca11c1b6f1e9bb3489c61d9d12ac49bf714f41c7 Author: malolebrin <malolebrin@gmail.com> Date: Mon Mar 20 10:18:07 2023 +0100 ✨Owners is a OneToMany relation commit 5f0679da1908256b473d95a843c923a1ab2f46d6 Author: malolebrin <malolebrin@gmail.com> Date: Mon Mar 20 10:01:40 2023 +0100 🧑💻 Add readonly TS property on RelationId commit e03b21f6a82af31daa67896d93d35c89f2e5873b Author: malolebrin <malolebrin@gmail.com> Date: Mon Mar 20 09:58:48 2023 +0100 🏗 complete mutli account new achitectur commit 31dbeddba67425aaafafc11960c73e428562ab74 Author: malolebrin <malolebrin@gmail.com> Date: Mon Mar 20 08:51:28 2023 +0100 🌱 Seeder with company entity commit 7f38b5235d0bbda14616665cbe0bf7018dad7d2b Author: malolebrin <malolebrin@gmail.com> Date: Mon Mar 20 08:26:49 2023 +0100 🧑💻 Base entity id is readonly commit 041abea36c232e7d2645c80dd5a3cc752d2ebde9 Author: malolebrin <malolebrin@gmail.com> Date: Sat Mar 18 17:06:35 2023 +0100 ✨ Add owner role and remove checkUserRole in route commit b6e799a2c981b5c7ba67faeba1f1227bdbbf4a23 Author: Malo <55061197+MaloLebrin@users.noreply.github.com> Date: Mon Mar 20 18:10:06 2023 +0100 ✨ manage multi account (#164) * ✨ Add owner role and remove checkUserRole in route * 🧑💻 Base entity id is readonly * 🌱 Seeder with company entity * 🏗 complete mutli account new achitectur * 🧑💻 Add readonly TS property on RelationId * ✨Owners is a OneToMany relation * ✨ CheckUserRole can have string as enum and array of roles as args * ✨Add endpoints to getCompany and updates Owners * 🔥 removed unused migrations commit bbcaa9f8cbf4e400aedf01cf8d8c649ef663bf25 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Sun Mar 19 15:28:09 2023 +0100 Update pnpm to v7.30.0 (#163) commit 0feff84fb26d2f688a533c445b5cab4228306120 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Sat Mar 18 23:05:19 2023 +0100 Update dependency typescript to v5 (#161) commit c7f93931fa962a9f624f24c82efaa6dc4c858ab5 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Sat Mar 18 22:39:21 2023 +0100 Update dependency @antfu/eslint-config to ^0.37.0 (#162) commit 62e5ed1be8aa34451b1a0275daad1db3f7d48707 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Wed Mar 15 14:20:29 2023 +0100 Update pnpm to v7.29.3 (#158) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit e6200775d2202d72b0eca3cd340b690b7f127abd Author: malolebrin <malolebrin@gmail.com> Date: Wed Mar 15 14:10:15 2023 +0100 ⚡️ Send all relations created with the event commit b88d495a1a36c2efc6e8e0b0f7ba3ccea85f89c0 Author: malolebrin <malolebrin@gmail.com> Date: Wed Mar 15 13:30:39 2023 +0100 🩹 Fix create relations on event's creation commit afc1f7039cfca5dcfcd9f1757f309e9123ce4a68 Author: malolebrin <malolebrin@gmail.com> Date: Wed Mar 15 13:09:33 2023 +0100 🩹 Fix routing post event commit 3dae6b53c32a4feecaccd0daf3f18163ba5480e9 Author: Malo <55061197+MaloLebrin@users.noreply.github.com> Date: Wed Mar 15 09:33:31 2023 +0100 ✨ Add specific endpoint to create event with relations (#156) * Merfe userservice * 🌱 Seeders worked * 🌱Seed badge to User 6 * 🩹 seeder launch every time app launch commit c6735f760ecb6985ec32514888ffd1e2b80f2194 Author: malolebrin <malolebrin@gmail.com> Date: Tue Mar 21 13:34:30 2023 +0100 ✨Add endpoint to update company with strong validation commit 7acc55e03153ab1b6c202c849c869dd886b20a52 Author: malolebrin <malolebrin@gmail.com> Date: Tue Mar 21 11:52:17 2023 +0100 ✨ Add form to update user and address with strong validation commit afca47340df8aca2bf7410c1f708c64b984c7a3e Author: malolebrin <malolebrin@gmail.com> Date: Tue Mar 21 09:10:00 2023 +0100 🩹 Fix TS errors commit 954186e0c3f145e59062e258787fd72cd24a21b3 Author: malolebrin <malolebrin@gmail.com> Date: Tue Mar 21 09:06:53 2023 +0100 ♻️ Remove owner relations commit 4881c8b5cd0763b59ebc0cba75b3598a6639de6f Author: malolebrin <malolebrin@gmail.com> Date: Tue Mar 21 01:16:40 2023 +0100 ✨ Create User for company commit 63a8ad6514650dc70145cff847a598aaa9f2e718 Author: malolebrin <malolebrin@gmail.com> Date: Tue Mar 21 00:05:36 2023 +0100 🩹 Fix es lint indentation commit 371eb45b241c2b9e677dfc1f7d3422b3c625d084 Author: malolebrin <malolebrin@gmail.com> Date: Tue Mar 21 00:05:10 2023 +0100 ✨return company and user on signup commit ad6f87354bb0a8db775be0b1ed9053edcff2d366 Author: malolebrin <malolebrin@gmail.com> Date: Mon Mar 20 18:16:59 2023 +0100 🩹 removed seeders commit 5a6b1c27ebfd7fd13d0bb8216671e2ce7094920d Author: Malo <55061197+MaloLebrin@users.noreply.github.com> Date: Mon Mar 20 18:14:35 2023 +0100 ✨ manage multi account (#166) * ✨ Add owner role and remove checkUserRole in route * 🧑💻 Base entity id is readonly * 🌱 Seeder with company entity * 🏗 complete mutli account new achitectur * 🧑💻 Add readonly TS property on RelationId * ✨Owners is a OneToMany relation * ✨ CheckUserRole can have string as enum and array of roles as args * ✨Add endpoints to getCompany and updates Owners * 🔥 removed unused migrations * ✨remove seeders on launch * ✨ fetch company with user on login * 🩹 Fix some issue after new architecture * ✨ Add endpoint to create new user in company, and rework endpoint to signup commit 08d50b14a62370dcef9be447f9d0ab34d225b7e8 Author: malolebrin <malolebrin@gmail.com> Date: Mon Mar 20 18:14:19 2023 +0100 Squashed commit of the following: commit 1b382661532dfccde816dff3f6d6e0c6b1025dd9 Author: malolebrin <malolebrin@gmail.com> Date: Mon Mar 20 16:35:14 2023 +0100 ✨ Add endpoint to create new user in company, and rework endpoint to signup commit 2081f747a7c7dbb2b3e72ed958daed919d59cafd Author: malolebrin <malolebrin@gmail.com> Date: Mon Mar 20 16:01:16 2023 +0100 🩹 Fix some issue after new architecture commit 23e8d5fb90b0eae1fd39e9752d856cde7af8d6c3 Author: malolebrin <malolebrin@gmail.com> Date: Mon Mar 20 14:01:40 2023 +0100 ✨ fetch company with user on login commit ea1d35788a89df5173b80a775b8acc02553f7830 Author: malolebrin <malolebrin@gmail.com> Date: Mon Mar 20 13:52:33 2023 +0100 ✨remove seeders on launch commit 3d6b6a686d770bd49c8a15b4a6681bc3ad78170e Author: malolebrin <malolebrin@gmail.com> Date: Mon Mar 20 13:20:07 2023 +0100 🔥 removed unused migrations commit a03307eead6d68848ff1bc5eb4b09ec6fa8f45f0 Author: malolebrin <malolebrin@gmail.com> Date: Mon Mar 20 11:19:53 2023 +0100 ✨Add endpoints to getCompany and updates Owners commit 5a790a7fafb03a1a0aac365179d3352ecc0ce41f Author: malolebrin <malolebrin@gmail.com> Date: Mon Mar 20 10:41:19 2023 +0100 ✨ CheckUserRole can have string as enum and array of roles as args commit ca11c1b6f1e9bb3489c61d9d12ac49bf714f41c7 Author: malolebrin <malolebrin@gmail.com> Date: Mon Mar 20 10:18:07 2023 +0100 ✨Owners is a OneToMany relation commit 5f0679da1908256b473d95a843c923a1ab2f46d6 Author: malolebrin <malolebrin@gmail.com> Date: Mon Mar 20 10:01:40 2023 +0100 🧑💻 Add readonly TS property on RelationId commit e03b21f6a82af31daa67896d93d35c89f2e5873b Author: malolebrin <malolebrin@gmail.com> Date: Mon Mar 20 09:58:48 2023 +0100 🏗 complete mutli account new achitectur commit 31dbeddba67425aaafafc11960c73e428562ab74 Author: malolebrin <malolebrin@gmail.com> Date: Mon Mar 20 08:51:28 2023 +0100 🌱 Seeder with company entity commit 7f38b5235d0bbda14616665cbe0bf7018dad7d2b Author: malolebrin <malolebrin@gmail.com> Date: Mon Mar 20 08:26:49 2023 +0100 🧑💻 Base entity id is readonly commit 041abea36c232e7d2645c80dd5a3cc752d2ebde9 Author: malolebrin <malolebrin@gmail.com> Date: Sat Mar 18 17:06:35 2023 +0100 ✨ Add owner role and remove checkUserRole in route commit b6e799a2c981b5c7ba67faeba1f1227bdbbf4a23 Author: Malo <55061197+MaloLebrin@users.noreply.github.com> Date: Mon Mar 20 18:10:06 2023 +0100 ✨ manage multi account (#164) * ✨ Add owner role and remove checkUserRole in route * 🧑💻 Base entity id is readonly * 🌱 Seeder with company entity * 🏗 complete mutli account new achitectur * 🧑💻 Add readonly TS property on RelationId * ✨Owners is a OneToMany relation * ✨ CheckUserRole can have string as enum and array of roles as args * ✨Add endpoints to getCompany and updates Owners * 🔥 removed unused migrations commit bbcaa9f8cbf4e400aedf01cf8d8c649ef663bf25 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Sun Mar 19 15:28:09 2023 +0100 Update pnpm to v7.30.0 (#163) commit 0feff84fb26d2f688a533c445b5cab4228306120 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Sat Mar 18 23:05:19 2023 +0100 Update dependency typescript to v5 (#161) commit c7f93931fa962a9f624f24c82efaa6dc4c858ab5 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Sat Mar 18 22:39:21 2023 +0100 Update dependency @antfu/eslint-config to ^0.37.0 (#162) commit 62e5ed1be8aa34451b1a0275daad1db3f7d48707 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Wed Mar 15 14:20:29 2023 +0100 Update pnpm to v7.29.3 (#158) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit e6200775d2202d72b0eca3cd340b690b7f127abd Author: malolebrin <malolebrin@gmail.com> Date: Wed Mar 15 14:10:15 2023 +0100 ⚡️ Send all relations created with the event commit b88d495a1a36c2efc6e8e0b0f7ba3ccea85f89c0 Author: malolebrin <malolebrin@gmail.com> Date: Wed Mar 15 13:30:39 2023 +0100 🩹 Fix create relations on event's creation commit afc1f7039cfca5dcfcd9f1757f309e9123ce4a68 Author: malolebrin <malolebrin@gmail.com> Date: Wed Mar 15 13:09:33 2023 +0100 🩹 Fix routing post event commit 3dae6b53c32a4feecaccd0daf3f18163ba5480e9 Author: Malo <55061197+MaloLebrin@users.noreply.github.com> Date: Wed Mar 15 09:33:31 2023 +0100 ✨ Add specific endpoint to create event with relations (#156) commit 8be2b4e8f968ad9c761df9d2c0d498cb703e0a45 Author: Malo <55061197+MaloLebrin@users.noreply.github.com> Date: Tue Mar 14 10:25:15 2023 +0100 ✨ automatic event archiving (#154) * ✨ When user is admin he can retrieved all events * ✨ Create endpoint to retrived only deleted events * ✨ Add jobs to Softdelete events commit 6c7da135b2ff0c5d4a3cad0943fe53b8fcb1be45 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Tue Mar 14 09:05:51 2023 +0100 Update pnpm to v7.29.2 (#149) commit c7adc023e1e34a1084d587bcd14afad1e8568f6c Author: Malo <55061197+MaloLebrin@users.noreply.github.com> Date: Mon Mar 13 18:26:38 2023 +0100 🩹 Fix Bug getMany in redis (#147) commit c2d5d15735bc6eee03bb374dc0740ce8bbd8be44 Author: Malo <55061197+MaloLebrin@users.noreply.github.com> Date: Mon Mar 13 14:45:08 2023 +0100 ⬆️ Update dependances (#145) commit 3160f2a1b3230963e341ea11534a5574891f0dd6 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Mon Mar 13 14:22:39 2023 +0100 ⬆️ Update dependency pino-pretty to v10 (#144) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit f7b76a1cca29d90df8c36fe4874a9c591f4ceeb9 Author: malolebrin <malolebrin@gmail.com> Date: Sat Mar 11 17:20:45 2023 +0100 ⚡️ Send uniq partner base on id key commit cf1b604d0a6b9b9fd156779c76de909abac2bdef Author: malolebrin <malolebrin@gmail.com> Date: Sat Mar 11 16:13:16 2023 +0100 ⚡️ improove relations users perfs on login commit 6d4db40334e600b6ee886411735e34e8f855751f Author: malolebrin <malolebrin@gmail.com> Date: Sat Mar 11 16:12:05 2023 +0100 ⚡️ Improove fetching relations user perf commit 036fddd3bac8ab1a160865e9089e2fd64afe2610 Author: Malo <55061197+MaloLebrin@users.noreply.github.com> Date: Fri Mar 10 16:12:15 2023 +0100 ♻️ Refacto user entity and employee entity (#143) * 🔥 Remove theme feature * ♻️ Refacto implements inherit entity for users and entity in the future which can have an account * ♻️ Ad BasePersonEntity to refacto user / employee and futur entities that use email firstName lastName * 🔥 remove unused code commit fc844a641dbb8f2885afe22f8550456318df548f Author: malolebrin <malolebrin@gmail.com> Date: Thu Mar 9 12:11:52 2023 +0100 🩹 Fix path request delete group commit 1c4a5e0891abe8b252266f15956825350577c61f Author: malolebrin <malolebrin@gmail.com> Date: Thu Mar 9 10:18:01 2023 +0100 🧑💻 Remove logger commit 4cd97eeb2f2ebce4d634ba6572f7ce004b201ab9 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Wed Mar 8 22:45:07 2023 +0100 Update Node.js to v18.15 (#141) commit 3e5d17f73e22be51d34337a903e976740dad9d19 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Wed Mar 8 10:48:33 2023 +0100 ⬆️ Update pnpm to v7.29.1 (#140) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit 4f74929bcc95b976e1bb1b88926cb10ea21a930e Author: malolebrin <malolebrin@gmail.com> Date: Mon Mar 6 15:50:33 2023 +0100 ✨ Add endpoint to send groups by Employee ID commit 86a5f2a0e852ccd9e7f711c487a1faa330a2fffe Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Mon Mar 6 10:21:35 2023 +0100 ⬆️ Update pnpm to v7.29.0 (#137) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit 4ac0d043f4423715081f16326211b04fe37e1dd4 Author: Malo <55061197+MaloLebrin@users.noreply.github.com> Date: Mon Mar 6 10:21:00 2023 +0100 ✨ New group create with CSV (#138) * ✨ New group create with CSV * ✨ Add request and validation fields * :construction_worker: Remove CI on windows and macos commit b49b8393709a1681a1c63a7267d62bec383bca55 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Sat Mar 4 19:03:17 2023 +0100 Update dependency @antfu/eslint-config to ^0.36.0 (#136) commit 4a3f5aec13e6e244f8a9de79a1e3bfa5e69a5b45 Author: malolebrin <malolebrin@gmail.com> Date: Fri Mar 3 16:53:19 2023 +0100 🌱 Seeder must run only in test mode commit f2dcaa04385e54cd0769e9430b81fabce3e1d9a3 Author: malolebrin <malolebrin@gmail.com> Date: Fri Mar 3 12:14:10 2023 +0100 🌱 Add more events in seeders commit c0f04452b57987058da0998f53d79e845cd15978 Author: malolebrin <malolebrin@gmail.com> Date: Fri Mar 3 11:51:13 2023 +0100 🌱 Improove Seeders commit 13ff773545b5d30d48fbe054fe61228c9d4dc7d7 Author: malolebrin <malolebrin@gmail.com> Date: Fri Mar 3 11:41:20 2023 +0100 🌱 Improove seeders commit e74beac5e65891b622d00923353d56a52acf5fbc Author: malolebrin <malolebrin@gmail.com> Date: Thu Mar 2 19:37:00 2023 +0100 🌱 Create Group Seeders commit 9ccffe9afebdcc11bb8f8726c6d438ab7a0e216e Author: Malo <55061197+MaloLebrin@users.noreply.github.com> Date: Thu Mar 2 19:16:55 2023 +0100 🌱Refacto seeders ♻️ (#133) * ♻️ Refacto seeder with class 🌱 * 🌱 Seeders must start only in test mode commit 4b7265250f0faca4345c88402a9228b10f45fd93 Author: Malo <55061197+MaloLebrin@users.noreply.github.com> Date: Thu Mar 2 18:30:14 2023 +0100 ✨employee list csv import (#132) * ✨ Create import from csv and add employees * 🌱 Add Seeder for upload Csv commit 7758c7e89ec7f2e057d2eb71a0a5be725a36326a Author: Malo <55061197+MaloLebrin@users.noreply.github.com> Date: Thu Mar 2 14:29:14 2023 +0100 ✨ create lists of recipients (#131) * ♻️ Create folder with employee entity and groupe of employees * Revert "♻️ Create folder with employee entity and groupe of employees" This reverts commit 140f888230869fa4d350a60d55d7fb9c14701307. * ♻️Move Employee entity in his folder * ✨ Create group entity and relation many to many with employee entity * ♻️ Move Employee service in folder * ✨ Add Group service * ♻️ Move employee controller in folder * ♻️ Add enpoints for Group entity * ✨ Endpoint update group car remove or add employees * 🔐 Add sql contrains rules (#130) commit 8357c7d8e4999176fea57d1a696485404a44c6d6 Author: Malo <55061197+MaloLebrin@users.noreply.github.com> Date: Wed Mar 1 17:47:23 2023 +0100 🔐 Add sql contrains rules (#130) commit cc57e94e6944a338677ef9bbad92179aa67b117c Author: malolebrin <malolebrin@gmail.com> Date: Tue Feb 28 16:00:28 2023 +0100 ♻️ Refacto use powerfull repository API commit c27e726ccee35c5519d26fa356df902467fcf610 Author: malolebrin <malolebrin@gmail.com> Date: Tue Feb 28 15:54:42 2023 +0100 🩹 return status 200 when request is completed commit f95d4d8f7b1603c41061eabd7b0739d903ab63f4 Author: Malo <55061197+MaloLebrin@users.noreply.github.com> Date: Mon Feb 27 23:40:20 2023 +0100 116 send notifications 1 (#124) * ♻️ Refacto entities create folder to organize entities * ✨ Add eventNotif name /type enum * ✨ Create Entities for notifications * ♻️ Add joinColumn decorator on eventNotif entity * 🚧 WIP * ✨ Create eventNotfication entity on creation of event * ♻️ Refacto Create function to generateName of queue * ♻️ Refactoring check user role before do an action * 🩹 Add joinColumn decorator needed in OnToOne relation * 🩹 notifications entities relations * ✨ Add services for notif subscriptions and notifs * ✨ Add service for eventNotifications * 🌱 Create notification in seeders * 🩹 Update notification queue job * ✨ Job create notification on event creation * ✨Creat endpoints getForUser and readMany notifs * 🔥 Remove comments * 📆 Add cron job to delete old notification readed * ✨ Update check for user role * ♻️ Export files * 🔥 Removed unused code * 🧑💻 help dev with log message * 🚧 WIP * 🧑💻wrappe request with helper * ✨ add public before methods * 🩹 Fix error casing imoprt SSECLIENT * ✨ Send notifcations when they're updated * 🩹 Fix mailjetService cannot send email in dev mode * ♻️ refacto answer service * 🌱 Add notifications seeders * ♻️ Rename event fetch many route * 🔐 update notification subscription validation's schema * ✨ Add endpoints to get, unsubscribe and subscribe notificationSubscription commit 023a8931b92e0cbdd8980fd8b1c55ddccb694dc6 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Sun Feb 26 19:02:54 2023 +0100 ⬆️ Update pnpm to v7.28.0 (#123) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit dd1416d43cc9dfc4dd17ab4489badedd53098d46 Author: malolebrin <malolebrin@gmail.com> Date: Sat Feb 25 09:07:30 2023 +0100 ✨ Disabled sending mail with env variable commit 790a4003183621bdee8e894476962e440c798b0a Author: malolebrin <malolebrin@gmail.com> Date: Fri Feb 24 15:29:34 2023 +0100 🔐more strong checkerrors commit 982e6c143e1de35b6fc036e478368034437c269d Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Fri Feb 24 10:04:34 2023 +0100 ⬆️ Update dependency pino to v8.11.0 (#120) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit 9d8118f07043ab2e031ed51c72b900d5352b730e Author: Malo <55061197+MaloLebrin@users.noreply.github.com> Date: Fri Feb 24 10:01:35 2023 +0100 ✨build notifications systeme (#121) * ♻️ Refacto entities create folder to organize entities * ✨ Add eventNotif name /type enum * ✨ Create Entities for notifications * ♻️ Add joinColumn decorator on eventNotif entity * 🚧 WIP * ✨ Create eventNotfication entity on creation of event * ♻️ Refacto Create function to generateName of queue * ♻️ Refactoring check user role before do an action * 🩹 Add joinColumn decorator needed in OnToOne relation * 🩹 notifications entities relations * ✨ Add services for notif subscriptions and notifs * ✨ Add service for eventNotifications * 🌱 Create notification in seeders * 🩹 Update notification queue job * ✨ Job create notification on event creation * ✨Creat endpoints getForUser and readMany notifs * 🔥 Remove comments * 📆 Add cron job to delete old notification readed * ✨ Update check for user role * ♻️ Export files * 🔥 Removed unused code commit 4fa88f6de82ca5850871edb117f6b643a4ee24a1 Author: malolebrin <malolebrin@gmail.com> Date: Tue Feb 21 14:19:35 2023 +0100 🩹 Fix error cannot setHeader afiter already set express commit 79089929615129cdbf918cff0bc4e1ade7cb3cd3 Author: Malo <55061197+MaloLebrin@users.noreply.github.com> Date: Mon Feb 20 19:29:04 2023 +0100 ✨Send Mail to employee with Mailjet with Queue Jobs (#113) * :tada: init mailjet service * 🎉 Install mailjet node api * 🛠 Add new variable sin Env environement * ✨ Create Mail Entity * ✨ Add mail controller * 🩹 Fix grammar error * ✨ Add more constraint on mailEntity * ✨Create Mail Service to create mail entity link on answer * ✨ Add option with relation on answer getone * ✨ Add endpoint to send mail with on answer * ✨ Update Answer on send Mail to have date of last Mail send * ✨Add token to answer entity ti retrieved it from url * 🌱Seed mail with answer * ✨ Send mail on creation of answers * ♻️ Refacto typing and stronger * ✨ Add possibility to send new template for email * 🚧Create mail template for firstMail with answer * Update dependency pino to v8.10.0 * 🎉 Init notifications entities The purpose is to create an notification center based on subscriptions. User can choose what type of notification he want to recieved * 🔥 Remove notifications entities because it's a feature in PR * ✨ delete User cron job will be execute first day of every month midnight * 🔥 Remove commented code * Update pnpm to v7.27.1 * ✨ Create Queue jobs For updating events (#118) * 📚 update env exemple * 📦 Crons jobs depends now on redis too because queue jobs will be in cron * ⛔️ Add todo about bug multi get in redis * 🩹 Fix endpoint create Photographer * ✨ Add redis to save event directly in service when one's created or updated * 🧑💻 Add more space in code for readablity * ⬆️ Install BullMq and class transformer for create Queue jobs in workers * ✨ Add definition how job will be implementedd * 🛠 Create config BullMQ * ✨ Create Update event Job on creation answer * 🔥 Move update signature of event job in worker when answer created * ✨ delete User cron job will be execute first day of every month midnight * 🔥 Remove commented code * :building_construction: Make architectural changes * ♻️ refacto cron jobs organisation * ♻️ Refacto Use Logger * 🧑💻 Update type inference queue job * 🛠 Add delay to queue jobs * ✨ Add send mail queue job * 🔐 Better typing for udpate Status event job * ♻️ Refactoring logger utils * ✨ Add Mail to sign doc in queue jobs * 🩹 Type errors job definitions * 🔐 Update Answer's column contriants * 🩹 For some reason this job start seeder * ✨ Add mail when creation answer * ✨ Add template for mailjet service --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit a34f2d2c6bfdb855692d4130e06455c8f6e7f800 Author: Malo <55061197+MaloLebrin@users.noreply.github.com> Date: Sat Feb 18 18:57:25 2023 +0100 ✨ Create Queue jobs For updating events (#118) * 📚 update env exemple * 📦 Crons jobs depends now on redis too because queue jobs will be in cron * ⛔️ Add todo about bug multi get in redis * 🩹 Fix endpoint create Photographer * ✨ Add redis to save event directly in service when one's created or updated * 🧑💻 Add more space in code for readablity * ⬆️ Install BullMq and class transformer for create Queue jobs in workers * ✨ Add definition how job will be implementedd * 🛠 Create config BullMQ * ✨ Create Update event Job on creation answer * 🔥 Move update signature of event job in worker when answer created * ✨ delete User cron job will be execute first day of every month midnight * 🔥 Remove commented code * :building_construction: Make architectural changes * ♻️ refacto cron jobs organisation * ♻️ Refacto Use Logger * 🧑💻 Update type inference queue job * 🛠 Add delay to queue jobs * ✨ Add send mail queue job commit 05d59116a3429fa644d22547a5c92edf91dfc5dc Merge: de93e19 7faa481 Author: Malo <55061197+MaloLebrin@users.noreply.github.com> Date: Sat Feb 18 11:08:09 2023 +0100 Update pnpm to v7.27.1 (#119) commit 7faa4816ff56564c27d6291387ce27b21f54edb0 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Sat Feb 18 09:51:11 2023 +0000 Update pnpm to v7.27.1 commit de93e1943dffc5f62b0d9b9afe49cdb670cbae36 Author: malolebrin <malolebrin@gmail.com> Date: Fri Feb 17 17:48:11 2023 +0100 🔥 Remove commented code commit c9addf1c59e629625f791fc017b0667fa7c2c9cf Author: malolebrin <malolebrin@gmail.com> Date: Fri Feb 17 17:47:35 2023 +0100 ✨ delete User cron job will be execute first day of every month midnight commit 396103f5a58332f451012597e11b98825a25871a Author: malolebrin <malolebrin@gmail.com> Date: Fri Feb 17 11:02:03 2023 +0100 🔥 Remove notifications entities because it's a feature in PR commit bb8ea8f7fd18f13f075e82c526a2f4a3bf06dbb6 Author: malolebrin <malolebrin@gmail.com> Date: Tue Feb 14 16:50:41 2023 +0100 🎉 Init notifications entities The purpose is to create an notification center based on subscriptions. User can choose what type of notification he want to recieved commit 71afbd6419606e57dbca85b2c73fe83e15ddfdbb Merge: 39f693c 995f113 Author: Malo <55061197+MaloLebrin@users.noreply.github.com> Date: Wed Feb 15 17:41:18 2023 +0100 Update dependency pino to v8.10.0 (#111) [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [pino](https://getpino.io) ([source](https://togithub.com/pinojs/pino)) | [`8.8.0` -> `8.10.0`](https://renovatebot.com/diffs/npm/pino/8.8.0/8.10.0) | [![age](https://badges.renovateapi.com/packages/npm/pino/8.10.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/pino/8.10.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/pino/8.10.0/compatibility-slim/8.8.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/pino/8.10.0/confidence-slim/8.8.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>pinojs/pino</summary> ### [`v8.10.0`](https://togithub.com/pinojs/pino/releases/tag/v8.10.0) [Compare Source](https://togithub.com/pinojs/pino/compare/v8.9.0...v8.10.0) #### What's Changed - feat: add dedupe option to transport by [@​nekosaur](https://togithub.com/nekosaur) in [https://github.com/pinojs/pino/pull/1640](https://togithub.com/pinojs/pino/pull/1640) #### New Contributors - [@​nekosaur](https://togithub.com/nekosaur) made their first contribution in [https://github.com/pinojs/pino/pull/1640](https://togithub.com/pinojs/pino/pull/1640) **Full Changelog**: https://github.com/pinojs/pino/compare/v8.9.0...v8.10.0 ### [`v8.9.0`](https://togithub.com/pinojs/pino/releases/tag/v8.9.0) [Compare Source](https://togithub.com/pinojs/pino/compare/v8.8.0...v8.9.0) #### What's Changed - Fix documentation example by [@​khobaib222](https://togithub.com/khobaib222) in [https://github.com/pinojs/pino/pull/1608](https://togithub.com/pinojs/pino/pull/1608) - docs: Add correct link to Matteo Collina's github account in README.md by [@​HassanBahati](https://togithub.com/HassanBahati) in [https://github.com/pinojs/pino/pull/1609](https://togithub.com/pinojs/pino/pull/1609) - Docs: Enhance Fastify Example - Add port for the server by [@​HassanBahati](https://togithub.com/HassanBahati) in [https://github.com/pinojs/pino/pull/1611](https://togithub.com/pinojs/pino/pull/1611) - Add yarn install to the documentation. by [@​luluhoc](https://togithub.com/luluhoc) in [https://github.com/pinojs/pino/pull/1614](https://togithub.com/pinojs/pino/pull/1614) - build(deps): bump actions/dependency-review-action from 2 to 3 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/pinojs/pino/pull/1597](https://togithub.com/pinojs/pino/pull/1597) - docs(pretty): update the api example guide and remove an obsolete type by [@​borjapazr](https://togithub.com/borjapazr) in [https://github.com/pinojs/pino/pull/1620](https://togithub.com/pinojs/pino/pull/1620) - Remove defunct "Exit logging" link by [@​bitjson](https://togithub.com/bitjson) in [https://github.com/pinojs/pino/pull/1622](https://togithub.com/pinojs/pino/pull/1622) - build(deps-dev): bump rimraf from 3.0.2 to 4.0.7 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/pinojs/pino/pull/1624](https://togithub.com/pinojs/pino/pull/1624) - remove: outdated/unused information from docs/pretty.md by [@​VladimirMikulic](https://togithub.com/VladimirMikulic) in [https://github.com/pinojs/pino/pull/1625](https://togithub.com/pinojs/pino/pull/1625) - fix: badges by [@​xtexChooser](https://togithub.com/xtexChooser) in [https://github.com/pinojs/pino/pull/1630](https://togithub.com/pinojs/pino/pull/1630) - Transports are always asynchronous by [@​mcollina](https://togithub.com/mcollina) in [https://github.com/pinojs/pino/pull/1631](https://togithub.com/pinojs/pino/pull/1631) - Add [@​logtail/pino](https://togithub.com/logtail/pino) to v7+ compatible transports by [@​curusarn](https://togithub.com/curusarn) in [https://github.com/pinojs/pino/pull/1634](https://togithub.com/pinojs/pino/pull/1634) - Allow message prefix - [#​544](https://togithub.com/pinojs/pino/issues/544) by [@​rluvaton](https://togithub.com/rluvaton) in [https://github.com/pinojs/pino/pull/1635](https://togithub.com/pinojs/pino/pull/1635) #### New Contributors - [@​khobaib222](https://togithub.com/khobaib222) made their first contribution in [https://github.com/pinojs/pino/pull/1608](https://togithub.com/pinojs/pino/pull/1608) - [@​HassanBahati](https://togithub.com/HassanBahati) made their first contribution in [https://github.com/pinojs/pino/pull/1609](https://togithub.com/pinojs/pino/pull/1609) - [@​luluhoc](https://togithub.com/luluhoc) made their first contribution in [https://github.com/pinojs/pino/pull/1614](https://togithub.com/pinojs/pino/pull/1614) - [@​borjapazr](https://togithub.com/borjapazr) made their first contribution in [https://github.com/pinojs/pino/pull/1620](https://togithub.com/pinojs/pino/pull/1620) - [@​bitjson](https://togithub.com/bitjson) made their first contribution in [https://github.com/pinojs/pino/pull/1622](https://togithub.com/pinojs/pino/pull/1622) - [@​VladimirMikulic](https://togithub.com/VladimirMikulic) made their first contribution in [https://github.com/pinojs/pino/pull/1625](https://togithub.com/pinojs/pino/pull/1625) - [@​xtexChooser](https://togithub.com/xtexChooser) made their first contribution in [https://github.com/pinojs/pino/pull/1630](https://togithub.com/pinojs/pino/pull/1630) - [@​curusarn](https://togithub.com/curusarn) made their first contribution in [https://github.com/pinojs/pino/pull/1634](https://togithub.com/pinojs/pino/pull/1634) - [@​rluvaton](https://togithub.com/rluvaton) made their first contribution in [https://github.com/pinojs/pino/pull/1635](https://togithub.com/pinojs/pino/pull/1635) **Full Changelog**: https://github.com/pinojs/pino/compare/v8.8.0...v8.9.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/MaloLebrin/be-right-backend). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xMjQuMiIsInVwZGF0ZWRJblZlciI6IjM0LjEyNC4yIn0=--> commit 995f113ab59d72772277d943f0b3fca73c34b316 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Mon Feb 13 19:13:06 2023 +0000 Update dependency pino to v8.10.0 commit 39f693cbbb982df06fba70ddd411e26df0dd0ca8 Author: malolebrin <malolebrin@gmail.com> Date: Mon Feb 13 16:18:54 2023 +0100 🔐 Adding guards for fetching geoLocations commit 6e6b36ac3d0aff4b191c80b563444c25da47bab2 Author: malolebrin <malolebrin@gmail.com> Date: Fri Feb 10 19:15:05 2023 +0100 🔥 Removing cache causing error in fetching addresses commit 43dd1d5ef46e2ef30b010ca9b07d85fb276f8f51 Author: malolebrin <malolebrin@gmail.com> Date: Fri Feb 10 19:14:41 2023 +0100 🌱 Seed address for emploee seeders commit 52fd7046695cfd096d326c2d23a3ac5e457a3ac0 Author: malolebrin <malolebrin@gmail.com> Date: Fri Feb 10 19:14:15 2023 +0100 ✨ initialise seeder after datasource init commit d328fa8be2d7b41d7d5b117a7191297742aa0326 Merge: 32cb143 0022d20 Author: Malo <55061197+MaloLebrin@users.noreply.github.com> Date: Thu Feb 9 14:37:49 2023 +0100 Update dependency typeorm to v0.3.12 (#107) [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [typeorm](https://typeorm.io) ([source](https://togithub.com/typeorm/typeorm)) | [`0.3.11` -> `0.3.12`](https://renovatebot.com/diffs/npm/typeorm/0.3.11/0.3.12) | [![age](https://badges.renovateapi.com/packages/npm/typeorm/0.3.12/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/typeorm/0.3.12/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/typeorm/0.3.12/compatibility-slim/0.3.11)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/typeorm/0.3.12/confidence-slim/0.3.11)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>typeorm/typeorm</summary> ### [`v0.3.12`](https://togithub.com/typeorm/typeorm/blob/HEAD/CHANGELOG.md#​0312-httpsgithubcomtypeormtypeormcompare03110312-2023-02-07) [Compare Source](https://togithub.com/typeorm/typeorm/compare/0.3.11...0.3.12) ##### Bug Fixes - allow to pass ObjectLiteral in mongo find where condition ([#​9632](https://togithub.com/typeorm/typeorm/issues/9632)) ([4eda5df](https://togithub.com/typeorm/typeorm/commit/4eda5df8693d1a659ff5c3461124cf05619fdd72)), closes [#​9518](https://togithub.com/typeorm/typeorm/issues/9518) - DataSource.setOptions doesn't properly update the database in the drivers ([#​9635](https://togithub.com/typeorm/typeorm/issues/9635)) ([a95bed7](https://togithub.com/typeorm/typeorm/commit/a95bed7c05d10eb4b508e225faa4cb3c7ea7944f)) - Fix grammar error in no migrations found log ([#​9754](https://togithub.com/typeorm/typeorm/issues/9754)) ([6fb2121](https://togithub.com/typeorm/typeorm/commit/6fb212187fdf97c07c41aad20d4f5503dfd44215)) - improved `FindOptionsWhere` behavior with union types ([#​9607](https://togithub.com/typeorm/typeorm/issues/9607)) ([7726f5a](https://togithub.com/typeorm/typeorm/commit/7726f5ad1ec0c826510202a0f2cbeea705547eee)) - Incorrect enum default value when table name contains dash character ([#​9685](https://togithub.com/typeorm/typeorm/issues/9685)) ([b3b0c11](https://togithub.com/typeorm/typeorm/commit/b3b0c118a40441b31ac18ee7ce0cea0696b701ab)) - incorrect sorting of entities with multi-inheritances ([#​9406](https://togithub.com/typeorm/typeorm/issues/9406)) ([54ca9dd](https://togithub.com/typeorm/typeorm/commit/54ca9dd801a77e011c2faf056b9e12845ccde82b)) - make sure "require" is defined in the environment ([1a9b9fb](https://togithub.com/typeorm/typeorm/commit/1a9b9fbcd683b2a28acbd26e39ac98dc6b60f001)) - materialized hints support for cte ([#​9605](https://togithub.com/typeorm/typeorm/issues/9605)) ([67973b4](https://togithub.com/typeorm/typeorm/commit/67973b4726500fc835639ffc302e0b6b20093df4)) - multiple select queries during db sync in sqlite ([#​9639](https://togithub.com/typeorm/typeorm/issues/9639)) ([6c928a4](https://togithub.com/typeorm/typeorm/commit/6c928a4aa002cf5db0733055c0a754e97e4b43b3)) - overriding caching settings when alwaysEnabled is true ([#​9731](https://togithub.com/typeorm/typeorm/issues/9731)) ([4df969e](https://togithub.com…
- Loading branch information