soketi icon indicating copy to clipboard operation
soketi copied to clipboard

[BUG] SQL Driver does nothing with column 'enabled'

Open eelco2k opened this issue 6 months ago • 1 comments

sql-app-manager.ts does nothing with the column 'enabled' as stated in the documentation to create an apps table for app authentication

https://github.com/soketi/soketi/blob/5d188786beaf683aca2115a6247dcdc15c29ac77/src/app-managers/sql-app-manager.ts#L79C15-L79C25 and https://github.com/soketi/soketi/blob/5d188786beaf683aca2115a6247dcdc15c29ac77/src/app-managers/sql-app-manager.ts#L88

just do a where clause on the id or key.

Maybe just an idea as enhancement: allow somewhere to create extra query filters. for example whereIsNull('deleted_at') if your table has this 'deleted_at' timestamp column.

Or at least give an example in the docs how to create a custom sql driver / manager.

eelco2k avatar Aug 06 '24 11:08 eelco2k