server: fix accessing password protected posts

This commit is contained in:
Max Leiter 2022-04-01 16:51:07 -07:00
parent 702dad14cb
commit ead3b0af9d
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: A3512F2F2F17EBDA
2 changed files with 3 additions and 2 deletions

View file

@ -32,7 +32,7 @@ export type Migration = typeof umzug._types.migration
// If you're in a development environment, you can manually migrate with `yarn migrate:{up,down}` in the `server` folder
if (config.is_production) {
;(async () => {
; (async () => {
// Checks migrations and run them if they are not already applied. To keep
// track of the executed migrations, a table (and sequelize model) called SequelizeMeta
// will be automatically created (if it doesn't exist already) and parsed.

View file

@ -246,7 +246,8 @@ posts.get(
"createdAt",
"updatedAt",
"deletedAt",
"expiresAt"
"expiresAt",
"password"
]
})