You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.
For plugin developer, one of the before_save usages is to remove un-wanted attributes to be saved to the database.
For example, conversation have a reference column message. Plugin SDK populate the message as JSON object for easy access. At before_save, the plugin will filter the message away preventing it being saved to DB.
For plugin developer, one of the
before_save
usages is to remove un-wanted attributes to be saved to the database.For example,
conversation
have a reference columnmessage
. Plugin SDK populate the message as JSON object for easy access. Atbefore_save
, the plugin will filter themessage
away preventing it being saved to DB.refs: SkygearIO/chat-SDK-JS#65
Expected Results
The
message
key got filtered out and will not save to DB.Actual Results
There is schema migration error. Since the passing type (jsonb) is not compatible with the DB type (reference).
The text was updated successfully, but these errors were encountered: