You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: api_addChannelTopicAsset.go
    path of file: ./repos/databag/net/server/internal
    
    the code of the file until where you have to start completion: package databag

import (
	"databag/internal/store"
	"encoding/json"
	"errors"
	"github.com/google/uuid"
	"github.com/gorilla/mux"
	"gorm.io/gorm"
	"hash/crc32"
	"io"
	"net/http"
	"os"
	"strings"
)

//AddChannelTopicAsset adds an asset to a topic and queues it for 
    
func isStorageFull(act *store.Account) (full bool, err error) {

	storage := getNumConfigValue(CNFStorage, 0)
	if storage == 0 {
		return
	}

	var assets []store.Asset
	if err = store.DB.Where("account_id = ?", act.ID).Find(&assets).Error; err != nil {
		return
	}

	var size int64
	for _, asset := range assets {
		size += asset.Size
	}
	if size >= storage {
		full = true
	}

	return
}