it('should not throw error when user is an app', async () => {
            const user = {
                active: true,
                type: 'app',
            };