Commit Graph

4 Commits

Author SHA1 Message Date
julien 3d31456500 fix(db): register Application model in mysql.js DB initializer
Application was added to models/mysql/index.js but not to mysql.js,
which is the actual file that instantiates all Sequelize models.
DB.Application was undefined, causing the relationships to fail at startup.
2026-04-26 21:52:05 +02:00
julien 66821427be fix(skydive): migrate author field from ObjectId to UUID string
- Register SkydiverProfile model in mysql.js (fixes startup crash on association)
- Replace $toObjectId with direct string match in all 12 aggregation queries
- Guard toJSONFor on all Mongo models to fall back to MySQL user.toProfileJSONFor()
  when author is a UUID string (restores username/image in API responses)
- Pass user to toJSONFor() everywhere instead of null
- Remove dead .populate('author') calls (author: String has no ref)
- Fix ownership check in /last route: compare author string to req.payload.id
  instead of the now-absent author.username property
2026-04-26 04:27:47 +02:00
julien 60feffd929 Refactoring et ajout de routes Hero Wars 2025-11-27 10:50:17 +01:00
Rampeur 5d361da628 Réorganisation des sources 2025-08-15 19:39:35 +02:00