getCurrentUserStoreDto method
Implementation
Future<UserStoreDto?> getCurrentUserStoreDto(
SchemaMetaData smd, DbTransaction transaction) async {
if (_currentUserStoreDto == null) {
UserStoreDao userStoreDao = UserStoreDao(smd, transaction);
await userStoreDao.init(initTable: true);
try {
int? cuid = await getCurrentUserId(smd, transaction);
_currentUserStoreDto = await userStoreDao.getUserStoreDtoById(cuid!);
} on SqlException catch (e) {
if (e.sqlExceptionEnum == SqlExceptionEnum.FAILED_SELECT)
print("WS $e");
else
rethrow;
}
}
return _currentUserStoreDto;
}