Fix parameter ordering

This commit is contained in:
Neil Alexander 2021-02-26 10:50:36 +00:00
parent db6a3cda5a
commit f999e58a6f
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -514,7 +514,7 @@ func (a *KeyInternalAPI) uploadLocalDeviceKeys(ctx context.Context, req *api.Per
func (a *KeyInternalAPI) uploadOneTimeKeys(ctx context.Context, req *api.PerformUploadKeysRequest, res *api.PerformUploadKeysResponse) {
if len(req.OneTimeKeys) == 0 {
counts, err := a.DB.OneTimeKeysCount(ctx, req.DeviceID, req.UserID)
counts, err := a.DB.OneTimeKeysCount(ctx, req.UserID, req.DeviceID)
if err != nil {
res.Error = &api.KeyError{
Err: fmt.Sprintf("a.DB.OneTimeKeysCount: %s", err),