mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-11 17:27:31 +02:00
Fix production error related to missing user group creation date
Address the 'column user_groups.created_at does not exist' error in production by adjusting the getUserWithGroups query and ensuring admin authentication is functional. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 54292eb6-296c-47a3-8f4e-c9967863556c Replit-Commit-Checkpoint-Type: full_checkpoint
This commit is contained in:
1 parent
a6efc91d14
commit
8256d0b965
3 files changed
+183
-2
No files matched your search
+6
-2
@@ -1999,9 +1999,13 @@ class MemStorage implements IStorage {
|
||||
async deletePermission(): Promise<void> {}
|
||||
async getRolePermissions(): Promise<any[]> { return []; }
|
||||
async setRolePermissions(): Promise<void> {}
|
||||
async getUserRoles(): Promise<any[]> { return []; }
|
||||
async setUserRoles(): Promise<void> {}
|
||||
async getUserPermissions(): Promise<any[]> { return []; }
|
||||
async assignUserToGroup(userGroup: { groupId: number; userId: string; }): Promise<{ createdAt: Date | null; groupId: number; userId: string; }> {
|
||||
return { ...userGroup, createdAt: new Date() };
|
||||
}
|
||||
async removeUserFromGroup(): Promise<void> {}
|
||||
async getMonthlyStats(): Promise<any> { return {}; }
|
||||
async getNocodbConfigs(): Promise<any[]> { return []; }
|
||||
}
|
||||
|
||||
// Use MemStorage in development, DatabaseStorage in production
|
||||
|
||||
Reference in new issue
Block a user