From 4f50c4817a2a03f6cd2315588973ca70837f3e1c Mon Sep 17 00:00:00 2001 From: Adphi Date: Tue, 15 Jan 2019 15:58:20 +0100 Subject: [PATCH] fix wrong user quota type (int to int64) --- types/mocks/Client.go | 6 +++--- types/user.go | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/types/mocks/Client.go b/types/mocks/Client.go index a047195..aedb0ec 100644 --- a/types/mocks/Client.go +++ b/types/mocks/Client.go @@ -1,11 +1,11 @@ package mocks -import mock "github.com/stretchr/testify/mock" -import types "gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud/types" +import ( + "gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud/types" +) // Client is an autogenerated mock type for the Client type type Client struct { - mock.Mock } // Apps provides a mock function with given fields: diff --git a/types/user.go b/types/user.go index b619ede..baf4f90 100644 --- a/types/user.go +++ b/types/user.go @@ -33,8 +33,8 @@ type UserDetails struct { type Quota struct { Free int64 `json:"free"` - Used int `json:"used"` + Used int64 `json:"used"` Total int64 `json:"total"` Relative float64 `json:"relative"` - Quota int `json:"quota"` + Quota int64 `json:"quota"` }