refactor(cloudfunc) getShortSize