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
@EnumField('ChannelActionPermission', ChannelActionPermission, {
description: `List of member's permissions`,
array: true, // none of these two works
isArray: true, // none of these two works
})
permissions!: ChannelActionPermission[];
the code compiles, but an error during db setup occurs:
DataTypeNotSupportedError: Data type "Array" in "ChannelAgentPermissions.permissions" is not supported by "postgres" database
This will require a change in Warthog's EnumField decorator. I wasn't able to make it work in a couple of hours, so I'm putting it on ice for now.
The text was updated successfully, but these errors were encountered:
There is no way how to create a list of enums.
The following input schema will generate uncompilable code:
The generated snippet in
channel-agent-permissions.model.ts
doesn't represent the schema (there is enum instead of array of enums created):After manually changing the generated code to
the code compiles, but an error during db setup occurs:
This will require a change in Warthog's
EnumField
decorator. I wasn't able to make it work in a couple of hours, so I'm putting it on ice for now.The text was updated successfully, but these errors were encountered: