mirror of
https://github.com/abhinavxd/libredesk.git
synced 2025-10-23 05:11:57 +00:00
fix: new incoming messages having 0 attachments in API responses, upload attachments first before sending out websocket updates.
- refactor: stringutils package remove unncessary `string` in function names. - minor refactors.
This commit is contained in:
@@ -304,10 +304,10 @@ CREATE TABLE media (
|
||||
store "media_store" NOT NULL,
|
||||
filename TEXT NOT NULL,
|
||||
content_type TEXT NOT NULL,
|
||||
content_id TEXT NULL,
|
||||
model_id INT NULL,
|
||||
model_type TEXT NULL,
|
||||
disposition media_disposition NULL,
|
||||
content_id TEXT NULL,
|
||||
"size" INT NULL,
|
||||
meta jsonb DEFAULT '{}'::jsonb NOT NULL,
|
||||
CONSTRAINT constraint_media_on_filename CHECK (length(filename) <= 1000),
|
||||
|
Reference in New Issue
Block a user