fixed web-socket and add rewards on post

This commit is contained in:
SlimusMinus
2026-08-12 00:41:31 +03:00
parent f3ba7e6512
commit 13ed934c60
12 changed files with 107 additions and 52 deletions

View File

@@ -54,4 +54,4 @@ jwt:
app:
cors:
allowed-origins: ${CORS_ALLOWED_ORIGINS:https://refound.example.com,http://localhost:3000}
allowed-origins: http://localhost:5173,http://localhost:3000

View File

@@ -0,0 +1,12 @@
databaseChangeLog:
- changeSet:
id: 014-add-reward-posts
author: alexandr krylov
changes:
- addColumn:
tableName: posts
columns:
- column:
name: is_reward
type: boolean
defaultValueBoolean: false

View File

@@ -18,3 +18,4 @@ databaseChangeLog:
- include: { file: db/changelog/add/013-add-rules_accepted-posts.yaml}
- include: { file: db/changelog/create/009-create-statistic.yaml }
- include: { file: db/changelog/alter/011-alter-posts-district-length.yaml}
- include: { file: db/changelog/add/014-add-reward-posts.yaml }